private void BindDigitalGoods() { IList <OrderItemDigitalGood> digitalGoodsCollection = GetDigitalGoods(); if (digitalGoodsCollection.Count > 0) { DigitalGoodsGrid.DataSource = GetDigitalGoods(); DigitalGoodsGrid.DataBind(); } }
protected void Page_PreRender(object sender, EventArgs e) { if (this.Order != null) { IList <OrderItemDigitalGood> digitalGoodsCollection = GetDigitalGoods(this.Order); if (digitalGoodsCollection.Count > 0) { DigitalGoodsPanel.Visible = true; DigitalGoodsGrid.DataSource = digitalGoodsCollection; DigitalGoodsGrid.DataBind(); } } }
protected void Page_Load(object sender, System.EventArgs e) { _ReadmeId = AlwaysConvert.ToInt(Request.QueryString["ReadmeId"]); _Readme = ReadmeDataSource.Load(_ReadmeId); if (_Readme == null) { Response.Redirect("Default.aspx"); } if (!Page.IsPostBack) { DisplayName.Text = _Readme.DisplayName; IsHtml.Checked = _Readme.IsHTML; ReadmeText.Text = _Readme.ReadmeText; } DigitalGoodsGrid.DataSource = _Readme.DigitalGoods; DigitalGoodsGrid.DataBind(); Caption.Text = string.Format(Caption.Text, _Readme.DisplayName); AbleCommerce.Code.PageHelper.SetHtmlEditor(ReadmeText, HtmlButton); }
protected void BindDigitalGoodsGrid() { DigitalGoodsGrid.DataSource = ProductDigitalGoodDataSource.LoadForVariant(this.ProductId, string.Empty); DigitalGoodsGrid.DataBind(); }
protected void BindDigitalGoodsGrid() { DigitalGoodsGrid.DataSource = GetDigitalGoods(); DigitalGoodsGrid.DataBind(); }