Exemple #1
0
 private void LoadData()
 {
     if (Session["MyCart"] != null)
     {
         MyCartGridView.DataSource = (Session["MyCart"] as MyCart).MyCartList;
         MyCartGridView.DataBind();
     }
 }
Exemple #2
0
 private void RetreiveMyCart()
 {
     if (Session["MyCart"] != null && Session["UserName"] != null)
     {
         MyCart mycart = Session["MyCart"] as MyCart;
         MyCartGridView.DataSource = mycart.MyCartList;
         MyCartGridView.DataBind();
     }
     else
     {
         MyCartGridView.DataBind();
     }
 }