Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // VALIDATE THE WISHLIST
            Wishlist      wishlist = AbleContext.Current.User.PrimaryWishlist;
            List <string> warnMessages;
            bool          isValid = wishlist.Validate(out warnMessages);

            // DISPLAY ANY WARNING MESSAGES
            if (!isValid)
            {
                WarningMessageList.DataSource = warnMessages;
                WarningMessageList.DataBind();
            }

            RegisterLink.NavigateUrl = NavigationHelper.GetMobileStoreUrl("~/Login.aspx");
        }
Exemple #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // VALIDATE THE WISHLIST
            Wishlist      wishlist = AbleContext.Current.User.PrimaryWishlist;
            List <string> warnMessages;
            bool          isValid = wishlist.Validate(out warnMessages);

            // DISPLAY ANY WARNING MESSAGES
            if (!isValid)
            {
                WarningMessageList.DataSource = warnMessages;
                WarningMessageList.DataBind();
            }

            // INITIALIZE PASSWORD ON FIRST VISIT
            if (!Page.IsPostBack)
            {
                WishlistPasswordValue.Text = wishlist.ViewPassword;
            }

            //TOGGLE PRICE COLUMNS
            _ItemPrice         = WishlistGrid.Columns[2];
            _ItemPrice.Visible = !AnyWishlistItemsZero();
        }