protected void AddCategoryButton_Click(object sender, EventArgs e) { if (this.Page.IsValid) { ProductCategory productCategory = new ProductCategory { ParentCategoryID = this.CategoryPath.CurrentCategoryId, CategoryHtmlName = base.Server.HtmlEncode(this.txtCategoryName.Text), CategoryDescription = base.Server.HtmlEncode(this.txtCategoryDescription.Text) }; ProductCategories.AddProductCategory(productCategory); CategoryCache.ClearCategoryCache(); this.CategoryDropDown.Refresh(); this.txtCategoryName.Text = string.Empty; this.txtCategoryDescription.Text = string.Empty; this.SubcategoriesList.DataBind(); } }