Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            FirstClassDm LFirstName = new FirstClassDm();

            LFirstName.FirstClassDmName = "家居家装";
            List <SecondClassDm> lSecondClassName = new List <SecondClassDm>();

            lSecondClassName        = FirstClassDm.FcNameGetScName(LFirstName);
            dlistClassDm.DataSource = lSecondClassName;
            dlistClassDm.DataBind();
            this.dlistProductShow.DataSource = ImgInfo.FurnitureCity();
            this.dlistProductShow.DataBind();
            //大图片
            BigImg           mBigImg           = new BigImg();
            string           mCityType         = "家具城";
            BigImgController mBigImgController = new BigImgController();

            this.BigImg.ImageUrl = mBigImgController.GetImgUrl(mBigImg, mCityType);
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            str = Request.QueryString["FirstName"];
            FirstClassDm first = new FirstClassDm();

            first.FirstClassDmName    = str;
            this.DataList1.DataSource = FirstClassDm.FcNameGetScName(first);
            this.DataList1.DataBind();
            GA   gAdmin = new GA();
            Good lGood  = new Good();

            lGood.FirstClassDmID = gAdmin.FcNameGetID(first);
            List <Good> lGoodList = new List <Good>();

            lGoodList = Good.FcIDGetGoodID(lGood);
            List <ImgInfo> lImgInfo = new List <ImgInfo>();

            this.datalist_good.DataSource = ImgInfo.GoodIDGetImgInfo(lGoodList);
            this.datalist_good.DataBind();
        }