Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (ROYcms.Common.ShopCooksCar.GetProductCon() > 0)
     {
         Repeater_Cart.DataSource = ROYcms.Common.ShopCooksCar.GetCar();
         Repeater_Cart.DataBind();
     }
     else
     {
         Response.Redirect("/shop/index.aspx");
     }
 }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Page_Load(object sender, EventArgs e)
 {
     if (ROYcms.Common.ShopCooksCar.GetProductCon() > 0)
     {
         Repeater_Cart.DataSource = ROYcms.Common.ShopCooksCar.GetCar();
         Repeater_Cart.DataBind();
     }
     else
     {
         Repeater_Cart.DataSource = null;
         Repeater_Cart.DataBind();
     }
 }