protected void Del_Btn(object obj, EventArgs e) { LinkButton linkButton = obj as LinkButton; RepeaterItem repeaterItem = linkButton.Parent as RepeaterItem; HtmlInputCheckBox htmlInputCheckBox = repeaterItem.FindControl("chk") as HtmlInputCheckBox; int id = Convert.ToInt32(htmlInputCheckBox.Value); PaperDownload.Init().Delete(id); this.Show(); }
protected void Del_All(object sender, EventArgs e) { foreach (RepeaterItem repeaterItem in this.rpt.Items) { HtmlInputCheckBox htmlInputCheckBox = repeaterItem.FindControl("chk") as HtmlInputCheckBox; if (htmlInputCheckBox.Checked) { int id = Convert.ToInt32(htmlInputCheckBox.Value); PaperDownload.Init().Delete(id); } } this.Show(); }