protected void Page_Load(object sender, EventArgs e) { textBoxAddProductSalePrice.Enabled = false; Products prodObj = new Products(); textBoxProductID.Text = prodObj.fn_getNextProductId(); }
protected void Page_Load(object sender, EventArgs e) { if (Session["userID"] == null) { // Redirect user to login before doing anything else Response.Redirect("~/Login.aspx?redirect=ManageProductInformation.aspx"); } else if (Session["userID"] != null && Session["userRole"].Equals("1")) { // Redirect user to login before doing anything else Response.Redirect("~/Home.aspx"); } textBoxAddProductSalePrice.Enabled = false; Products prodObj = new Products(); textBoxProductID.Text = prodObj.fn_getNextProductId(); }
protected void Page_Load(object sender, EventArgs e) { if (Session["userID"] == null) { // Redirect user to login before doing anything else Response.Redirect("~/Login.aspx?redirect=ManageProductInformation.aspx"); } else if (Session["userID"] != null && Session["userRole"].Equals("1")) { // Redirect user to login before doing anything else Response.Redirect("~/Home.aspx"); } textBoxAddProductSalePrice.Enabled = false; Products prodObj = new Products(); textBoxProductID.Text = prodObj.fn_getNextProductId(); }
protected void Page_Load(object sender, EventArgs e) { textBoxAddProductSalePrice.Enabled = false; Products prodObj = new Products(); textBoxProductID.Text = prodObj.fn_getNextProductId(); }