Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int    typeid   = string.IsNullOrEmpty(Request.QueryString["mid"]) ? 3 : Convert.ToInt32(Request.QueryString["mid"]);
            string strWhere = " and channel_id=" + typeid + "";

            //推荐商品
            //if (!string.IsNullOrEmpty(Request.QueryString["cid"]))
            //{
            //    strWhere += " and category_id=" + int.Parse(Request.QueryString["cid"]);
            //}
            DAL.article dalArticle = new article();
            repdate2.DataSource = dalArticle.GetPageindexList("6", 10, "");
            repdate2.DataBind();
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int    AreaID = 0;
            string proID  = Request.QueryString["id"];

            if (!string.IsNullOrEmpty(proID))
            {
                BLL.article         bll   = new BLL.article();
                Model.article_goods model = bll.GetGoodsModel(int.Parse(proID));
                if (model != null)
                {
                    AreaID = model.Areaid;
                }
            }
            DAL.article dalArticle = new article();
            repdate1.DataSource = dalArticle.GetPageindexList("", 4, " and channel_id =" + Request.QueryString["mid"] + " and id !=" + int.Parse(proID) + " and Areaid=" + AreaID);
            repdate1.DataBind();
        }