/// <summary> /// 页面加载 /// </summary> protected override void PageLoad() { base.PageLoad(); int id = RequestHelper.GetQueryString <int>("ID"); productBrand = ProductBrandBLL.ReadProductBrandCache(id); ProductSearchInfo productSearch = new ProductSearchInfo(); productSearch.BrandID = id; productSearch.IsTop = (int)BoolType.True; productList = ProductBLL.SearchProductList(productSearch); string strProductID = string.Empty; foreach (ProductInfo product in productList) { if (strProductID == string.Empty) { strProductID = product.ID.ToString(); } else { strProductID += "," + product.ID.ToString(); } } if (strProductID != string.Empty) { memberPriceList = MemberPriceBLL.ReadMemberPriceByProductGrade(strProductID, base.GradeID); } Title = productBrand.Name; }
protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { int queryString = RequestHelper.GetQueryString <int>("ID"); if (queryString != -2147483648) { base.CheckAdminPower("ReadProductBrand", PowerCheckType.Single); ProductBrandInfo info = ProductBrandBLL.ReadProductBrandCache(queryString); this.Name.Text = info.Name; this.Logo.Text = info.Logo; this.Url.Text = info.Url; this.Description.Text = info.Description; this.IsTop.Text = info.IsTop.ToString(); } } }