protected void gvList_RowCommand(object sender, GridViewCommandEventArgs e) { int cateId = Convert.ToInt32(e.CommandArgument); NoName.NetShop.Solution.BLL.SolutionCategoryBll sbll = new NoName.NetShop.Solution.BLL.SolutionCategoryBll(); if (e.CommandName == "del") { sbll.Delete(ScenceId, cateId); this.BindList(); } }
protected void gvList_RowCommand(object sender, GridViewCommandEventArgs e) { int cateId = Convert.ToInt32(e.CommandArgument); NoName.NetShop.Solution.BLL.SolutionCategoryBll sbll = new NoName.NetShop.Solution.BLL.SolutionCategoryBll(); if (e.CommandName == "del") { sbll.Delete(ScenceId, cateId); this.BindList(); } }
private void BindList() { NoName.NetShop.Solution.BLL.SolutionCategoryBll sbll = new NoName.NetShop.Solution.BLL.SolutionCategoryBll(); gvList.DataSource = sbll.GetModelList(ScenceId); gvList.DataBind(); }
private void BindList() { NoName.NetShop.Solution.BLL.SolutionCategoryBll sbll = new NoName.NetShop.Solution.BLL.SolutionCategoryBll(); gvList.DataSource = sbll.GetModelList(ScenceId); gvList.DataBind(); }