protected void EGV_RowCommand(object sender, GridViewCommandEventArgs e) { switch (e.CommandName) { case "del2": dsBll.DeleteByID(Convert.ToInt32(e.CommandArgument)); break; default: break; } MyBind(); }
protected void Page_Load(object sender, EventArgs e) { if (function.isAjax(Request)) { string[] s = Request.Form["data"].Split(','); foreach (string i in s) { dsBll.DeleteByID(Convert.ToInt32(i)); Response.Write("1"); Response.Flush(); Response.End(); } } if (!IsPostBack) { MyBind(); Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='../Config/SiteOption.aspx'>系统设置</a></li><li><a href='DSList.aspx'>数据源列表</a></li><li class='active'>数据源管理</li>"); } }