protected void HotelRepeater_ItemCommand(object source, RepeaterCommandEventArgs e) { switch (e.CommandName) { case "Modify": Response.Redirect("HotelAdd2.aspx?Opera=Edit&&HId=" + int.Parse(e.CommandArgument.ToString())); break; case "Delete": string h_id = e.CommandArgument.ToString(); mbll.DeleteHotel(h_id); Response.Redirect("HotelList2.aspx"); break; } }