コード例 #1
0
ファイル: Shopping.aspx.cs プロジェクト: smitadam/CS3870
        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();
        }
コード例 #2
0
ファイル: Default.aspx.cs プロジェクト: smitadam/CS3870
 protected void Page_Load(object sender, EventArgs e)
 {
     SQLDataClass.getAllProducts();
 }