Example #1
0
        protected void gvGroup_SelectedIndexChanged(object sender, EventArgs e)
        {
            GoodsGroup group = new GoodsGroup();

            group.GroupCode = (int)gvGroup.SelectedValue;
            GoodsTable gt = new GoodsTable();

            dlRecommend.DataSource = gt.GetRecommendGoods(group);
            dlRecommend.DataBind();
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                GoodsTable gt = new GoodsTable();

                dlItemInfo.DataSource = gt.GetGoods(Session["SearchWord"].ToString());
                dlItemInfo.DataBind();
                Session["CurrentPage"] = "goodslist.aspx";
            }
        }
Example #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                GoodsGroupTable ggt = new GoodsGroupTable();
                gvGroup.DataSource = ggt.GetGoodsGroup();
                gvGroup.DataBind();

                GoodsTable gt = new GoodsTable();
                dlRecommend.DataSource = gt.GetRecommendGoods();
                dlRecommend.DataBind();
                Session["CurrentPage"] = "index.aspx";
            }
        }
Example #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         Goods      goods = (Goods)Session["Goods"];
         GoodsTable gt    = new GoodsTable();
         Goods      ret   = gt.GetGoods(goods);
         if (ret != null)
         {
             imgItem.ImageUrl       = "~/images/goods/" + ret.GoodsImage;
             lblItemName.Text       = ret.GoodsName;
             lblItemOesc.Text       = ret.Detail;
             lblItemPrice.Text      = ret.Price.ToString("c");
             Session["CurrentPage"] = "goodslist.aspx";
         }
     }
 }