protected void Button1_Click(object sender, EventArgs e) { ShoppingCart k = new ShoppingCart(); k.CategoryName = TextBox1.Text; k.AddNewCategory(); TextBox1.Text = string.Empty; Response.Redirect("~/Admin/AddNewProduct.aspx"); }
protected void submitCategory_Click(object sender, EventArgs e) { ShoppingCart sc = new ShoppingCart { CategoryName = categoryname.Text }; sc.AddNewCategory(); categoryname.Text = string.Empty; Response.Redirect("~/Admin/AddNewProducts.aspx"); }
protected void btnSubmit_click(object sender, EventArgs e) { ShoppingCart K = new ShoppingCart { CategoryName = txtCategoryName.Text }; K.AddNewCategory(); txtCategoryName.Text = string.Empty; Response.Redirect("~/Admin/AddNewProducts.aspx"); }