Example #1
0
        protected void Page_PreRender( object sender, EventArgs e )
        {
            Response.Cache.SetCacheability( HttpCacheability.NoCache );

            var client = SiteContext.Current.CurrentClient;
            _clientNameLabel.Text = !client.IsGuest ? client.Profile.ClientName : "";
            Cart = client.Cart;
            _totalSumLiteral.Text = Cart.GetTotals().Total.ToString();
            _totalCountLiteral.Text = Cart.GetTotals().ItemsCount.ToString();

            _cartItemsRepeater.DataSource = Cart.GetItems();
            _cartItemsRepeater.DataBind();
        }