protected void Page_Load(object sender, EventArgs e) { SQLDataClass.getAllProducts(); if (!IsPostBack && (bool)Application["Prog2_Computed"]) { txtID.Text = (string)Application["Prog2_ProductID"]; txtQuantity.Text = (string)Application["Prog2_ProductQuantity"]; txtPrice.Text = (string)Application["Prog2_ProductPrice"]; CalculateTotals(); } txtID.Focus(); }
protected void Page_Load(object sender, EventArgs e) { SQLDataClass.getAllProducts(); }