Example #1
0
        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();
        }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     SQLDataClass.getAllProducts();
 }