Ejemplo n.º 1
0
 protected override void AttachChildControls()
 {
     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)
     {
         this.BindBrandProduct();
     }
 }
Ejemplo n.º 2
0
 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();
         }
     }
 }
Ejemplo n.º 3
0
 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();
     }
 }