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.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.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() { 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 += this.cutdownSearch_ReSearch; 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; } if (!this.Page.IsPostBack) { BrandCategoryInfo brandCategory = CatalogHelper.GetBrandCategory(this.brandId); if (brandCategory == null) { this.Page.Response.Redirect("/ResourceNotFound.aspx?errorMsg=" + Globals.UrlEncode("该品牌已经不存在")); } else { this.LoadCategoryHead(brandCategory); this.litBrandName.Text = brandCategory.BrandName; this.litBrandRemark.Text = brandCategory.Description; PageTitle.AddSiteNameTitle(brandCategory.BrandName); this.BindBrandProduct(); } } }
protected override void AttachChildControls() { this.common_Location = (Common_Location)this.FindControl("common_Location"); this.rptProducts = (Common_GoodsList_Search)this.FindControl("list_Common_GoodsList_Search"); 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.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); } this.cutdownSearch = (Common_CutdownSearch)this.FindControl("search_Common_CutdownSearch"); this.cutdownSearch.ReSearch += new Common_CutdownSearch.ReSearchEventHandler(this.cutdownSearch_ReSearch); if (!this.Page.IsPostBack) { if (this.common_Location != null) { int result = 0; int.TryParse(this.Page.Request.QueryString["categoryId"], out result); CategoryInfo category = CategoryBrowser.GetCategory(result); if (category != null) { this.common_Location.CateGoryPath = category.Path; } } this.BindSearch(); } }
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.common_attributeslist = (Common_AttributesList)this.FindControl("common_attributeslist"); this.litLeadBuy = (System.Web.UI.WebControls.Literal) this.FindControl("litLeadBuy"); this.litHotGood = (System.Web.UI.WebControls.Literal) this.FindControl("litHotGood"); this.common_Location = (Common_Location)this.FindControl("common_Location"); this.rptProducts = (ThemedTemplatedRepeater)this.FindControl("rptProducts"); this.pager = (Pager)this.FindControl("pager"); this.litSearchResultPage = (System.Web.UI.WebControls.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.hotSale = (Common_GoodsList_HotSale)this.FindControl("list_Common_GoodsList_HotSale");//销售排行 if (this.btnSortPrice != null) { this.btnSortPrice.Sorting += new Common_Search_SortTime.SortingHandler(this.btnSortPrice_Sorting); } if (this.btnSortTime != null) { 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.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(); } this.cutdownSearch = (Common_CutdownSearch)this.FindControl("search_Common_CutdownSearch"); if (this.cutdownSearch != null) { this.cutdownSearch.ReSearch += new Common_CutdownSearch.ReSearchEventHandler(this.cutdownSearch_ReSearch); } if (!this.Page.IsPostBack) { CategoryInfo category = CategoryBrowser.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; } if (this.litHotGood != null) { this.litHotGood.Text = category.Notes2; } this.LoadPageSearch(category); } this.BindSearch(); } }