protected void btnSubmit_Click(object sender, EventArgs e) { Shopping shopping = new Shopping { CategoryName = TxtCategory.Text }; shopping.AddNewCategory(); TxtCategory.Text = ""; //Response.Redirect("~/Admin/AddNewProduct.aspx"); }