Пример #1
0
        protected void grvCategories_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            GridViewRow editRow = grvColor.Rows[e.RowIndex];

            ch.DeleteCategory(Convert.ToInt32((editRow.FindControl("hiddenColorID") as HiddenField).Value));
            BindData();
        }
        protected void lbtnDel_Click(object sender, EventArgs e)
        {
            ProductCategoryController ch = new ProductCategoryController();

            ch.DeleteCategory(Convert.ToInt32(rtvCatList.SelectedNode.Value));
            Response.Redirect(Request.RawUrl);
        }