protected void imgs_Click(object sender, ImageClickEventArgs e) { foreach (RepeaterItem ri in repeater.Items) { CheckBox item_check = (CheckBox)ri.FindControl("item_check"); Label txt_id = (Label)ri.FindControl("txt_id"); if (item_check.Checked) { con = new SqlConnection(strcon); SqlCommand cmd = new SqlCommand("ram", con); cmd.CommandType = CommandType.StoredProcedure; con.Open(); cmd.Parameters.AddWithValue("@Action", "DELETE"); cmd.Parameters.AddWithValue("@eid", txt_id); repeat(); } } }
<asp:ImageButton ID="imgs" runat="server" ImageUrl="images/Button-Close-icon.png" OnClick="imgs_Click" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)