using System; using System.Collections.Generic;<small></small> using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.Security; using System.IO; using System.Data; using System.Data.SqlClient; using System.Web.Configuration; using System.Configuration; public partial class Products : System.Web.UI.Page { public static Label lblCat,lblSubcat; public static TextBox txtCat, txtSubCat; string _Cat;// stores new Sub cat string _SubCat; string _Imgname = string.Empty; // Extracts the img name string _ImgPath = string.Empty;// can be called to store the img path protected void lnkCat_Click(object sender, EventArgs e) { Panel2.Visible = false; Panel1.Visible = true; lblCat = new Label(); lblCat.Text = "Enter new Category: "; PHcat.Controls.Add(lblCat);// on a placeholder lblCat.EnableViewState = true; txtCat = new TextBox(); _Cat = txtCat.Text; PhtxtCat.Controls.Add(txtCat);// on a placeholder } protected void lnkSubCat_Click(object sender, EventArgs e) { Panel1.Visible = true; Panel2.Visible = true; lblSubcat = new Label(); lblSubcat.Text = "Enter new Sub-Category: "; PHsubCat.Controls.Add(lblSubcat);// on a placeholder txtSubCat = new TextBox(); _SubCat = txtSubCat.Text; PhtxtSubCat.Controls.Add(txtSubCat);// on a placeholder } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)