protected void gr2_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.CommandName == "delsec") { int secid = Convert.ToInt32(e.CommandArgument); int count = Ia.Audelsection(secid); if (count > 0) { ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "ok", "<script type='text/javascript'>alert('删除成功!');this.location.href=this.location.href;</script>", false); } else { ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "err", "<script type='text/javascript'>alert('删除失败!');</script>", false); } } }
public int Audelsection(int section) { return(IA.Audelsection(section)); }