protected override void AttachChildControls() { if (!int.TryParse(this.Page.Request.QueryString["supplierId"], out supplierId)) { base.GotoResourceNotFound(); return; } SupplierInfo shipper = SupplierHelper.GetSupplier(this.supplierId); if (shipper == null) { base.GotoResourceNotFound(); return; } this.rptProducts = (ThemedTemplatedRepeater)this.FindControl("rptProducts"); this.hotSale = (Common_GoodsList_HotSale)this.FindControl("list_Common_GoodsList_HotSale");//销售排行 this.pager = (Pager)this.FindControl("pager"); this.litSearchResultPage = (System.Web.UI.WebControls.Literal) this.FindControl("litSearchResultPage"); if (!this.Page.IsPostBack) { this.BindSearch(); } }
protected override void AttachChildControls() { if (!HiContext.Current.User.IsReferral()) { this.Page.Response.Redirect("/User/ReferralRegisterAgreement", true); } this.rptReferralSplitin = (ThemedTemplatedRepeater)this.FindControl("rptReferralSplitin"); this.pager = (Pager)this.FindControl("pager"); this.calendarStart = (CalendarPanel)this.FindControl("calendarStart"); this.calendarEnd = (CalendarPanel)this.FindControl("calendarEnd"); this.dropSplittingType = (SplittingTypesDropDownList)this.FindControl("SplittingTypeList"); this.imgbtnSearch = (HtmlAnchor)this.FindControl("abtnSearch"); this.litAllSplittin = (FormatedMoneyLabel)this.FindControl("litAllSplittin"); this.litUseSplittin = (FormatedMoneyLabel)this.FindControl("litUseSplittin"); this.litNoUseSplittin = (FormatedMoneyLabel)this.FindControl("litNoUseSplittin"); this.litCanGet = (FormatedMoneyLabel)this.FindControl("litCanGet"); this.imgbtnSearch.ServerClick += this.imgbtnSearch_Click; PageTitle.AddSiteNameTitle("我的奖励"); if (!this.Page.IsPostBack) { this.BindSplittins(); int userId = HiContext.Current.UserId; this.litAllSplittin.Money = MemberProcessor.GetUserAllSplittin(userId); this.litUseSplittin.Money = MemberProcessor.GetUserUseSplittin(userId); this.litNoUseSplittin.Money = MemberProcessor.GetUserNoUseSplittin(userId); this.litCanGet.Money = MemberProcessor.GetUserUseSplittin(userId); } }
protected override void AttachChildControls() { this.rptHelps = (ThemedTemplatedRepeater)this.FindControl("rptHelps"); this.pager = (Pager)this.FindControl("pager"); this.lblCategory = (System.Web.UI.WebControls.Label) this.FindControl("lblCategory"); this.lblhelpName = (System.Web.UI.WebControls.Label) this.FindControl("lblhelpName"); this.lblhelpcontent = (System.Web.UI.WebControls.Literal) this.FindControl("lblhelpcontent"); if (!this.Page.IsPostBack) { if (!string.IsNullOrEmpty(this.Page.Request.QueryString["helpid"])) { int helpid = 0; int.TryParse(this.Page.Request.QueryString["helpid"], out helpid); HelpInfo helpInfo = CommentBrowser.GetHelp(helpid); if (helpInfo != null) { HelpCategoryInfo helpCategory = CommentBrowser.GetHelpCategory(helpInfo.CategoryId); PageTitle.AddSiteNameTitle(helpInfo.Title); this.lblCategory.Text = helpCategory.Name; this.lblhelpName.Text = helpInfo.Title; this.lblhelpcontent.Text = helpInfo.Content; } } this.BindList(); } }
protected override void AttachChildControls() { this.rptProduct = (ThemedTemplatedRepeater)this.FindControl("rptProduct"); this.pager = (Pager)this.FindControl("pager"); this.litBrandProductResult = (System.Web.UI.WebControls.Literal) this.FindControl("litBrandProductResult"); this.cutdownSearch = (Common_CutdownSearch)this.FindControl("search_Common_CutdownSearch"); this.btnSortPrice = (Common_Search_SortPrice)this.FindControl("btn_Common_Search_SortPrice"); this.btnSortTime = (Common_Search_SortTime)this.FindControl("btn_Common_Search_SortTime"); this.btnSortPopularity = (Common_Search_SortPopularity)this.FindControl("btn_Common_Search_SortPopularity"); this.btnSortSaleCounts = (Common_Search_SortSaleCounts)this.FindControl("btn_Common_Search_SortSaleCounts"); this.cutdownSearch.ReSearch += new Common_CutdownSearch.ReSearchEventHandler(this.cutdownSearch_ReSearch); this.btnSortPrice.Sorting += new Common_Search_SortTime.SortingHandler(this.btnSortPrice_Sorting); this.btnSortTime.Sorting += new Common_Search_SortTime.SortingHandler(this.btnSortTime_Sorting); if (this.btnSortPopularity != null) { this.btnSortPopularity.Sorting += new Common_Search_SortPopularity.SortingHandler(this.btnSortPopularity_Sorting); } if (this.btnSortSaleCounts != null) { this.btnSortSaleCounts.Sorting += new Common_Search_SortSaleCounts.SortingHandler(this.btnSortSaleCounts_Sorting); } if (!this.Page.IsPostBack) { this.BindBrandProduct(); } }
protected override void AttachChildControls() { this.rptProduct = (ThemedTemplatedRepeater)this.FindControl("rptProduct"); if (!this.Page.IsPostBack) { this.BindList(); } this.div_activelist = (System.Web.UI.HtmlControls.HtmlGenericControl) this.FindControl("div_activelist"); if (this.div_activelist != null) { string type = string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings["IsActiveOpen"])?"1":System.Configuration.ConfigurationManager.AppSettings["IsActiveOpen"].ToString(); this.div_activelist.Visible = (type == "1") ? true : false; } if (HiContext.Current.User.UserRole == UserRole.Member && ((Member)HiContext.Current.User).ReferralStatus == 2 && string.IsNullOrEmpty(this.Page.Request.QueryString["ReferralUserId"])) { string text = System.Web.HttpContext.Current.Request.Url.ToString(); if (text.IndexOf("?") > -1) { text = text + "&ReferralUserId=" + HiContext.Current.User.UserId; } else { text = text + "?ReferralUserId=" + HiContext.Current.User.UserId; } this.Page.Response.Redirect(text); return; } HiContext current = HiContext.Current; PageTitle.AddTitle(current.SiteSettings.SiteName + " - " + current.SiteSettings.SiteDescription, HiContext.Current.Context); }
protected override void AttachChildControls() { this.serach_text = (System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("search_text"); this.search_Subtext = (System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("search_Subtext"); this.rptProducts = (ThemedTemplatedRepeater)this.FindControl("rptProducts"); this.pager = (Pager)this.FindControl("pager"); this.litProductCount = (System.Web.UI.WebControls.Literal) this.FindControl("litProductCount"); this.litSupplierDescribe = (System.Web.UI.WebControls.Literal) this.FindControl("litSupplierDescribe"); if (!int.TryParse(this.Page.Request.QueryString["supplierId"], out supplierId)) { base.GotoResourceNotFound(); return; } SupplierInfo shipper = SupplierHelper.GetSupplier(this.supplierId); if (shipper == null) { base.GotoResourceNotFound(); return; } else { litSupplierDescribe.Text = shipper.Description; } if (!this.Page.IsPostBack) { this.BindSearch(); } }
protected override void AttachChildControls() { this.litUserName = (Literal)this.FindControl("litUserName"); this.rbtnPaymentMode = (RadioButtonList)this.FindControl("rbtnPaymentMode"); this.txtReChargeBalance = (TextBox)this.FindControl("txtReChargeBalance"); this.btnReCharge = ButtonManager.Create(this.FindControl("btnReCharge")); this.litUseableBalance = (FormatedMoneyLabel)this.FindControl("litUseableBalance"); this.litAccountAmount = (FormatedMoneyLabel)this.FindControl("litAccountAmount"); this.litRequestBalance = (FormatedMoneyLabel)this.FindControl("litRequestBalance"); this.litUseableBalance1 = (FormatedMoneyLabel)this.FindControl("litUseableBalance1"); this.spaccountamount = (HtmlGenericControl)this.FindControl("spaccountamount"); this.sprequestbalace = (HtmlGenericControl)this.FindControl("sprequestbalace"); this.link_balancedraw = (HtmlAnchor)this.FindControl("link_balancedraw"); this.spadvancetip = (HtmlGenericControl)this.FindControl("spadvancetip"); this.divReCharge = (HtmlGenericControl)this.FindControl("divReCharge"); this.divReChargeGift = (HtmlGenericControl)this.FindControl("divReChargeGift"); this.rptReChargeGift = (ThemedTemplatedRepeater)this.FindControl("rptReChargeGift"); this.hidRechargeMoney = (HtmlInputHidden)this.FindControl("hidRechargeMoney"); this.rbtnPaymentMode.RepeatLayout = RepeatLayout.Table; this.rbtnPaymentMode.RepeatColumns = 6; PageTitle.AddSiteNameTitle("预付款充值"); this.btnReCharge.Click += this.btnReCharge_Click; if (!this.Page.IsPostBack) { MemberInfo user = HiContext.Current.User; if (!user.IsOpenBalance || string.IsNullOrWhiteSpace(user.TradePassword)) { this.Page.Response.Redirect($"/user/OpenBalance.aspx?ReturnUrl={HttpContext.Current.Request.Url}"); } this.BindPaymentMode(); this.litUserName.Text = HiContext.Current.User.UserName; this.litUseableBalance.Money = user.Balance - user.RequestBalance; this.litAccountAmount.Money = user.Balance; this.litRequestBalance.Money = user.RequestBalance; this.litUseableBalance1.Money = user.Balance - user.RequestBalance; HtmlGenericControl htmlGenericControl = this.spaccountamount; HtmlGenericControl htmlGenericControl2 = this.sprequestbalace; HtmlAnchor htmlAnchor = this.link_balancedraw; bool flag = htmlAnchor.Visible = HiContext.Current.SiteSettings.EnableBulkPaymentAdvance; bool visible = htmlGenericControl2.Visible = flag; htmlGenericControl.Visible = visible; if (HiContext.Current.SiteSettings.IsOpenRechargeGift) { List <RechargeGiftInfo> rechargeGiftItemList = PromoteHelper.GetRechargeGiftItemList(); this.rptReChargeGift.DataSource = rechargeGiftItemList; this.rptReChargeGift.DataBind(); this.divReCharge.Visible = false; this.divReChargeGift.Visible = true; this.spadvancetip.Visible = true; } else { this.divReCharge.Visible = true; this.divReChargeGift.Visible = false; this.spadvancetip.Visible = !HiContext.Current.SiteSettings.EnableBulkPaymentAdvance; } } }
protected override void AttachChildControls() { this.rptHelpSearch = (ThemedTemplatedRepeater)this.FindControl("rptHelpSearch"); this.pager = (Pager)this.FindControl("pager"); if (!this.Page.IsPostBack) { this.BindPromoteSales(); } }
protected override void AttachChildControls() { this.rptAffiches = (ThemedTemplatedRepeater)this.FindControl("rptAffiches"); if (!this.Page.IsPostBack) { this.rptAffiches.DataSource = CommentBrowser.GetAfficheList(); this.rptAffiches.DataBind(); } }
protected override void AttachChildControls() { this.rptProduct = (ThemedTemplatedRepeater)this.FindControl("rptProduct"); this.pager = (Pager)this.FindControl("pager"); if (!this.Page.IsPostBack) { this.BindProduct(); } }
protected override void AttachChildControls() { this.rptCategories = (ThemedTemplatedRepeater)this.FindControl("rptCategories"); if (!this.Page.IsPostBack) { DataSet threeLayerCategories = CategoryBrowser.GetThreeLayerCategories(); this.rptCategories.DataSource = threeLayerCategories.Tables[0].DefaultView; this.rptCategories.DataBind(); } }
protected override void AttachChildControls() { this.rptPromoteSales = (ThemedTemplatedRepeater)this.FindControl("rptPromoteSales"); this.pager = (Pager)this.FindControl("pager"); if (!this.Page.IsPostBack) { PageTitle.AddSiteNameTitle("优惠活动中心"); this.BindPromoteSales(); } }
protected override void AttachChildControls() { this.rptProduct = (ThemedTemplatedRepeater)this.FindControl("rptProduct"); this.pager = (Pager)this.FindControl("pager"); this.rptProduct.ItemDataBound += new System.Web.UI.WebControls.RepeaterItemEventHandler(this.rptProduct_ItemDataBound); if (!this.Page.IsPostBack) { this.BindBundlingProducts(); } }
protected override void AttachChildControls() { this.litBrandName = (System.Web.UI.WebControls.Literal) this.FindControl("litBrandName"); this.litBrandRemark = (System.Web.UI.WebControls.Literal) this.FindControl("litBrandRemark"); this.rptProducts = (ThemedTemplatedRepeater)this.FindControl("rptProducts"); this.pager = (Pager)this.FindControl("pager"); this.cutdownSearch = (Common_CutdownSearch)this.FindControl("search_Common_CutdownSearch"); this.btnSortPrice = (Common_Search_SortPrice)this.FindControl("btn_Common_Search_SortPrice"); this.btnSortTime = (Common_Search_SortTime)this.FindControl("btn_Common_Search_SortTime"); this.btnSortPopularity = (Common_Search_SortPopularity)this.FindControl("btn_Common_Search_SortPopularity"); this.btnSortSaleCounts = (Common_Search_SortSaleCounts)this.FindControl("btn_Common_Search_SortSaleCounts"); this.cutdownSearch.ReSearch += new Common_CutdownSearch.ReSearchEventHandler(this.cutdownSearch_ReSearch); this.btnSortPrice.Sorting += new Common_Search_SortTime.SortingHandler(this.btnSortPrice_Sorting); this.btnSortTime.Sorting += new Common_Search_SortTime.SortingHandler(this.btnSortTime_Sorting); this.hotSale = (Common_GoodsList_HotSale)this.FindControl("list_Common_GoodsList_HotSale");//销售排行 this.litSearchResultPage = (System.Web.UI.WebControls.Literal) this.FindControl("litSearchResultPage"); if (this.btnSortPopularity != null) { this.btnSortPopularity.Sorting += new Common_Search_SortPopularity.SortingHandler(this.btnSortPopularity_Sorting); } if (this.btnSortSaleCounts != null) { this.btnSortSaleCounts.Sorting += new Common_Search_SortSaleCounts.SortingHandler(this.btnSortSaleCounts_Sorting); } if (this.hotSale != null) { int cid = 0; int brandId = 0; if (!string.IsNullOrEmpty(this.Page.Request.QueryString["categoryId"])) { int.TryParse(this.Page.Request.QueryString["categoryId"], out cid); } if (!string.IsNullOrEmpty(this.Page.Request.QueryString["brand"])) { int.TryParse(this.Page.Request.QueryString["brand"], out brandId); } this.hotSale.DataSource = ProductBrowser.GetBrowseHotProductList(cid, brandId).DBHotSale; this.hotSale.DataBind(); } if (!this.Page.IsPostBack) { BrandCategoryInfo brandCategory = CategoryBrowser.GetBrandCategory(this.brandId); if (brandCategory == null) { this.Page.Response.Redirect(Globals.ApplicationPath + "/ResourceNotFound.aspx?errorMsg=" + Globals.UrlEncode("该品牌已经不存在")); return; } this.LoadCategoryHead(brandCategory); this.litBrandName.Text = brandCategory.BrandName; this.litBrandRemark.Text = brandCategory.Description; PageTitle.AddSiteNameTitle(brandCategory.BrandName); this.BindBrandProduct(); } }
protected override void AttachChildControls() { this.rptPointsCoupons = (ThemedTemplatedRepeater)this.FindControl("rptPointsCoupons"); this.rptGifts = (ThemedTemplatedRepeater)this.FindControl("rptGifts"); this.pager = (Pager)this.FindControl("pager"); if (!this.Page.IsPostBack) { this.BindPointsCoupons(); this.BindGift(); } }
protected override void AttachChildControls() { this.isOldUser = HttpContext.Current.Request["isOldUser"].ToBool(); this.rptRegisterCoupons = (ThemedTemplatedRepeater)this.FindControl("rptRegisterCoupons"); this.hidIsOpenGiftCoupons = (HiddenField)this.FindControl("hidIsOpenGiftCoupons"); this.lblTotalPrice = (Literal)this.FindControl("lblTotalPrice"); this.btnToGo = (HyperLink)this.FindControl("btnToGo"); if (!this.Page.IsPostBack) { this.BindRegisterCoupons(); } }
protected override void AttachChildControls() { this.dlstPtConsultationReply = (ThemedTemplatedRepeater)this.FindControl("dlstPtConsultationReply"); this.pagerConsultationReply = (Pager)this.FindControl("pagerConsultationReply"); this.litNotReverted = (Literal)this.FindControl("litNotReverted"); this.litreply = (Literal)this.FindControl("litreply"); PageTitle.AddSiteNameTitle("咨询/未回复"); if (!this.Page.IsPostBack) { this.BindPtConsultationReply(); } }
protected override void AttachChildControls() { this.rptMyCoupons = (ThemedTemplatedRepeater)this.FindControl("rptMyCoupons"); this.pager = (Pager)this.FindControl("pager"); this.hitypeId = (HiddenField)this.FindControl("hitypeId"); this.typeId = this.Page.Request.QueryString["typeId"].ToInt(0); this.hitypeId.Value = this.typeId.ToString(); if (!this.Page.IsPostBack) { this.BindCoupons(); } }
protected override void AttachChildControls() { if (!int.TryParse(this.Page.Request.QueryString["productId"], out this.productId)) { base.GotoResourceNotFound(); } this.rptRecords = (ThemedTemplatedRepeater)this.FindControl("rptRecords"); this.pager = (Pager)this.FindControl("pager"); if (!this.Page.IsPostBack) { PageTitle.AddSiteNameTitle("商品评论", HiContext.Current.Context); this.BindData(); } }
protected override void AttachChildControls() { this.rptProducts = (ThemedTemplatedRepeater)this.FindControl("rptProducts"); this.pager = (Pager)this.FindControl("pager"); this.litSearchResultPage = (Literal)this.FindControl("litSearchResultPage"); this.cutdownSearch = (Common_CutdownSearch)this.FindControl("search_Common_CutdownSearch"); this.cutdownSearch.ReSearch += this.cutdownSearch_ReSearch; if (!this.Page.IsPostBack) { string title = "商品下架区"; PageTitle.AddSiteNameTitle(title); this.BindProducts(); } }
protected override void AttachChildControls() { this.rptProducts = (ThemedTemplatedRepeater)this.FindControl("rptProducts"); this.pager = (Pager)this.FindControl("pager"); this.litSearchResultPage = (System.Web.UI.WebControls.Literal) this.FindControl("litSearchResultPage"); this.cutdownSearch = (Common_CutdownSearch)this.FindControl("search_Common_CutdownSearch"); this.cutdownSearch.ReSearch += new Common_CutdownSearch.ReSearchEventHandler(this.cutdownSearch_ReSearch); if (!this.Page.IsPostBack) { string title = "商品下架区"; PageTitle.AddSiteNameTitle(title, Hidistro.Membership.Context.HiContext.Current.Context); this.BindProducts(); } }
protected override void AttachChildControls() { int value = 0; if (int.TryParse(this.Page.Request.QueryString["supplierid"], out value)) { this.SupplierId = new int?(value); } this.rptProduct = (ThemedTemplatedRepeater)this.FindControl("rptProduct"); this.pager = (Pager)this.FindControl("pager"); this.rptProduct.ItemDataBound += new System.Web.UI.WebControls.RepeaterItemEventHandler(this.rptProduct_ItemDataBound); if (!this.Page.IsPostBack) { this.BindBundlingProducts(); } }
protected override void AttachChildControls() { this.dlstPts = (ThemedTemplatedRepeater)this.FindControl("dlstPts"); this.pager = (Pager)this.FindControl("pager"); this.litReviewCount = (Literal)this.FindControl("litReviewCount"); PageTitle.AddSiteNameTitle("我参与的评论"); if (!this.Page.IsPostBack) { this.orderId = this.Context.Request.QueryString["orderId"].ToNullString(); if (this.litReviewCount != null) { this.litReviewCount.Text = ProductBrowser.GetUserProductReviewsCount().ToString(); } this.BindPtAndReviewsAndReplys(); } }
protected override void AttachChildControls() { this.serach_text = (System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("search_text"); this.search_Subtext = (System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("search_Subtext"); this.rptProducts = (ThemedTemplatedRepeater)this.FindControl("rptProducts"); this.pager = (Pager)this.FindControl("pager"); this.litProductCount = (System.Web.UI.WebControls.Literal) this.FindControl("litProductCount"); this.litSupplierDescribe = (System.Web.UI.WebControls.Literal) this.FindControl("litSupplierDescribe"); if (!this.Page.IsPostBack) { this.BindSearch(); } }
protected override void AttachChildControls() { this.favorites = (ThemedTemplatedRepeater)this.FindControl("rptFavorites"); this.favoritesTags = (ThemedTemplatedRepeater)this.FindControl("rptFavoritesTags"); this.btnSearch = (Button)this.FindControl("imgbtnSearch"); this.txtKeyWord = (TextBox)this.FindControl("txtKeyWord"); this.pager = (Pager)this.FindControl("pager"); this.btnDeleteSelect = (LinkButton)this.FindControl("btnDeleteSelect"); this.btnSearch.Click += this.btnSearch_Click; this.btnDeleteSelect.Click += this.btnDeleteSelect_Click; PageTitle.AddSiteNameTitle("商品收藏夹"); if (!this.Page.IsPostBack) { this.BindList(); this.BindFavoritesTags(); } }
protected override void AttachChildControls() { this.rptProducts = (ThemedTemplatedRepeater)this.FindControl("rptProducts"); this.pager = (Pager)this.FindControl("pager"); this.litSearchResultPage = (Literal)this.FindControl("litSearchResultPage"); this.txtSKU = (HtmlInputText)this.FindControl("txtSKU"); this.txtKeywords = (HtmlInputText)this.FindControl("txtKeywords"); this.txtStartPrice = (HtmlInputText)this.FindControl("txtStartPrice"); this.txtEndPrice = (HtmlInputText)this.FindControl("txtEndPrice"); this.btnSearch = ButtonManager.Create(this.FindControl("btnSearch")); this.btnSearch.Click += new EventHandler(this.btnSearch_Click); if (!this.Page.IsPostBack) { string title = "商品下架区"; PageTitle.AddTitle(title, HiContext.Current.Context); this.BindProducts(this.GetProductBrowseQuery()); } }
protected override void AttachChildControls() { SiteSettings masterSettings = SettingsManager.GetMasterSettings(); this.rptHotProduct = (ThemedTemplatedRepeater)this.FindControl("rptHotProduct"); DataTable hotProductList = ProductBrowser.GetHotProductList(); for (int i = 0; i < hotProductList.Rows.Count; i++) { hotProductList.Rows[i]["ThumbnailUrl220"] = (string.IsNullOrEmpty(hotProductList.Rows[i]["ThumbnailUrl220"].ToString()) ? Globals.GetImageServerUrl("http://", masterSettings.DefaultProductThumbnail4) : Globals.GetImageServerUrl("http://", hotProductList.Rows[i]["ThumbnailUrl220"].ToString())); hotProductList.Rows[i]["ThumbnailUrl40"] = (string.IsNullOrEmpty(hotProductList.Rows[i]["ThumbnailUrl40"].ToString()) ? Globals.GetImageServerUrl("http://", masterSettings.DefaultProductThumbnail1) : Globals.GetImageServerUrl("http://", hotProductList.Rows[i]["ThumbnailUrl40"].ToString())); hotProductList.Rows[i]["ImageUrl2"] = (string.IsNullOrEmpty(hotProductList.Rows[i]["ImageUrl2"].ToString()) ? "" : Globals.GetImageServerUrl("http://", hotProductList.Rows[i]["ImageUrl2"].ToString().ToLower().Replace("/storage/master/product/images/", "/storage/master/product/thumbs40/40_"))); hotProductList.Rows[i]["ImageUrl3"] = (string.IsNullOrEmpty(hotProductList.Rows[i]["ImageUrl3"].ToString()) ? "" : Globals.GetImageServerUrl("http://", hotProductList.Rows[i]["ImageUrl3"].ToString().ToLower().Replace("/storage/master/product/images/", "/storage/master/product/thumbs40/40_"))); hotProductList.Rows[i]["ImageUrl4"] = (string.IsNullOrEmpty(hotProductList.Rows[i]["ImageUrl4"].ToString()) ? "" : Globals.GetImageServerUrl("http://", hotProductList.Rows[i]["ImageUrl4"].ToString().ToLower().Replace("/storage/master/product/images/", "/storage/master/product/thumbs40/40_"))); hotProductList.Rows[i]["ImageUrl5"] = (string.IsNullOrEmpty(hotProductList.Rows[i]["ImageUrl5"].ToString()) ? "" : Globals.GetImageServerUrl("http://", hotProductList.Rows[i]["ImageUrl5"].ToString().ToLower().Replace("/storage/master/product/images/", "/storage/master/product/thumbs40/40_"))); } this.rptHotProduct.DataSource = hotProductList; this.rptHotProduct.DataBind(); }
protected override void AttachChildControls() { this.litLeadBuy = (Literal)this.FindControl("litLeadBuy"); this.common_Location = (Common_Location)this.FindControl("common_Location"); this.rptProducts = (ThemedTemplatedRepeater)this.FindControl("rptProducts"); this.pager = (Pager)this.FindControl("pager"); this.litSearchResultPage = (Literal)this.FindControl("litSearchResultPage"); this.btnSortPrice = (Common_Search_SortPrice)this.FindControl("btn_Common_Search_SortPrice"); this.btnSortTime = (Common_Search_SortTime)this.FindControl("btn_Common_Search_SortTime"); this.btnSortPopularity = (Common_Search_SortPopularity)this.FindControl("btn_Common_Search_SortPopularity"); this.btnSortSaleCounts = (Common_Search_SortSaleCounts)this.FindControl("btn_Common_Search_SortSaleCounts"); this.litSearchResult = (Literal)this.FindControl("litSearchResult"); this.btnSortPrice.Sorting += this.btnSortPrice_Sorting; this.btnSortTime.Sorting += this.btnSortTime_Sorting; if (this.btnSortPopularity != null) { this.btnSortPopularity.Sorting += this.btnSortPopularity_Sorting; } if (this.btnSortSaleCounts != null) { this.btnSortSaleCounts.Sorting += this.btnSortSaleCounts_Sorting; } this.cutdownSearch = (Common_CutdownSearch)this.FindControl("search_Common_CutdownSearch"); this.cutdownSearch.ReSearch += this.cutdownSearch_ReSearch; if (!this.Page.IsPostBack) { CategoryInfo category = CatalogHelper.GetCategory(this.categoryId); if (category != null) { if (this.common_Location != null) { this.common_Location.CateGoryPath = category.Path; } if (this.litLeadBuy != null) { this.litLeadBuy.Text = category.Notes1; } this.LoadPageSearch(category); } this.BindSearch(); } }
protected override void AttachChildControls() { this.litBrandName = (Literal)this.FindControl("litBrandName"); this.litBrandRemark = (Literal)this.FindControl("litBrandRemark"); this.rptProduct = (ThemedTemplatedRepeater)this.FindControl("rptProduct"); this.pager = (Pager)this.FindControl("pager"); this.litBrandProductResult = (Literal)this.FindControl("litBrandProductResult"); this.cutdownSearch = (Common_CutdownSearch)this.FindControl("search_Common_CutdownSearch"); this.btnSortPrice = (Common_Search_SortPrice)this.FindControl("btn_Common_Search_SortPrice"); this.btnSortTime = (Common_Search_SortTime)this.FindControl("btn_Common_Search_SortTime"); this.btnSortPopularity = (Common_Search_SortPopularity)this.FindControl("btn_Common_Search_SortPopularity"); this.btnSortSaleCounts = (Common_Search_SortSaleCounts)this.FindControl("btn_Common_Search_SortSaleCounts"); this.cutdownSearch.ReSearch += new Common_CutdownSearch.ReSearchEventHandler(this.cutdownSearch_ReSearch); this.btnSortPrice.Sorting += new Common_Search_SortTime.SortingHandler(this.btnSortPrice_Sorting); this.btnSortTime.Sorting += new Common_Search_SortTime.SortingHandler(this.btnSortTime_Sorting); if (this.btnSortPopularity != null) { this.btnSortPopularity.Sorting += new Common_Search_SortPopularity.SortingHandler(this.btnSortPopularity_Sorting); } if (this.btnSortSaleCounts != null) { this.btnSortSaleCounts.Sorting += new Common_Search_SortSaleCounts.SortingHandler(this.btnSortSaleCounts_Sorting); } if (!this.Page.IsPostBack) { int.TryParse(this.Page.Request.QueryString["brandId"], out this.brandId); BrandCategoryInfo brandCategory = CategoryBrowser.GetBrandCategory(this.brandId); if (brandCategory == null) { this.Page.Response.Redirect(Globals.ApplicationPath + "/ResourceNotFound.aspx?errorMsg=" + Globals.UrlEncode("该品牌已经不存在")); } else { this.LoadCategoryHead(brandCategory); this.litBrandName.Text = brandCategory.BrandName; this.litBrandRemark.Text = brandCategory.Description; PageTitle.AddTitle(brandCategory.BrandName, HiContext.Current.Context); this.BindBrandProduct(); } } }
protected override void AttachChildControls() { if (!long.TryParse(this.Page.Request.QueryString["VoteId"], out this.voteId)) { base.GotoResourceNotFound(); } this.lblTotal = (System.Web.UI.WebControls.Label) this.FindControl("lblTotal"); this.lblVoteName = (System.Web.UI.WebControls.Literal) this.FindControl("lblVoteName"); this.rptVoteItem = (ThemedTemplatedRepeater)this.FindControl("rptVoteItem"); if (!this.Page.IsPostBack) { VoteInfo voteById = CommentBrowser.GetVoteById(this.voteId); if (voteById != null) { PageTitle.AddSiteNameTitle(voteById.VoteName); this.Vote(voteById); VoteInfo voteById2 = CommentBrowser.GetVoteById(this.voteId); this.BindVoteItem(voteById2); } } }