//ThirdClassDm mThirdClassDm = new ThirdClassDm(); protected void Page_Load(object sender, EventArgs e) { //绑定服装城二级类目数据 this.dlClothes.DataSource = mSecondClassDm.GetSecondClothes(); this.dlClothes.DataBind(); //绑定商品图片信息 mClothGood.FirstClassDmID = "003"; this.dlistProductShow.DataSource = ImgInfo.GoodIDGetImgInfo(Good.FcIDGetGoodID(mClothGood)); this.dlistProductShow.DataBind(); //绑定商品宣传图片信息 //this.dlBigImg.DataSource = mClothImageInfo.GetBigImgAddress(); //this.dlBigImg.DataBind(); BigImg mBigImg = new BigImg(); string mCityType = "服装城"; BigImgController mBigImgController = new BigImgController(); this.BigImg.ImageUrl = mBigImgController.GetImgUrl(mBigImg, mCityType); }
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(); }