Exemple #1
0
        protected void btnAddNew_Click(object sender, EventArgs e)
        {
            if (ValidateAddFields())
            {
                string categoryName     = CategoryName.Text;
                string categoryDesc     = CategoryDesc.Text;
                int    parentCategoryID = sectionID;
                int    categoryID       = 0;
                categoryID        = AdminCategories.AddNewCategory(categoryName, categoryDesc, sectionID, parentCategoryID);
                CategoryName.Text = "";
                CategoryDesc.Text = "";

                BindData();
            }
        }