示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (OrderItemDigitalGood == null)
            {
                Response.Redirect("Default.aspx");
            }
            string name = (OrderItemDigitalGood.DigitalGood != null) ? OrderItemDigitalGood.DigitalGood.Name : OrderItemDigitalGood.OrderItem.Name;

            Caption.Text             = string.Format(Caption.Text, name);
            DownloadsGrid.DataSource = OrderItemDigitalGood.Downloads;
            DownloadsGrid.DataBind();
            Order order = OrderItemDigitalGood.OrderItem.Order;

            DigitalGoodsLink.NavigateUrl += "?OrderNumber=" + order.OrderNumber.ToString();
        }
示例#2
0
        private void BindSubscriptionDigitalGoods()
        {
            IList <DigitalGood> digitalGoodsCollection = GetSubscriptionDigitalGoods();

            if (digitalGoodsCollection.Count > 0)
            {
                DownloadsGrid.DataSource = digitalGoodsCollection;
                DownloadsGrid.DataBind();
                SubscriptionDownloads.Visible = true;
            }
            else
            {
                SubscriptionDownloads.Visible = false;
            }
        }