Ejemplo n.º 1
0
 protected void btnDeleteCategory_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(hdnCategoryID.Value) == false)
     {
         int categoryID = int.Parse(hdnCategoryID.Value);
         AdminCategories.DeleteCategory(categoryID);
         BindData();
         CategoryEdit.Visible = false;
         lblMessage.Text      = "Category was successfully deleted. ";
     }
     else
     {
         lblMessage.Text = "Node is not selected.";
     }
 }