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"); }
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(); }