Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 29th, 2007, 02:23 PM
Authorized User
 
Join Date: Mar 2007
Location: , , .
Posts: 39
Thanks: 0
Thanked 1 Time in 1 Post
Default VB version Global.asax missing some code

The code below to migrate an anonymous users shopping cart to the current users cart is missing from the 'Profile_MigrateAnonymous' event in Global.asax of the VB version code.

Code:
'if set, copy its Theme and ShoppingCart to the current user's profile
If anonProfile.ShoppingCart.Items.Count > 0 Then
   Me.Profile.ShoppingCart = anonProfile.ShoppingCart
End If
Enhancement idea: if items already exist in the users profile cart may want to consider prompting user to ADD the anonymous items to the existing items in their cart instead of just replacing them


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to declare the global variable in global.asax? calyn_gately ASP.NET 3.5 Basics 0 August 6th, 2008 08:06 PM
In my Global asax file aDo I need the code below n kenn_rosie VS.NET 2002/2003 0 April 11th, 2006 12:17 AM
what is global.asax? gaurav_jain2403 General .NET 1 February 3rd, 2006 02:40 PM
Using Global.asax varialbles in a class.vb file sougata ASP.NET 1.0 and 1.1 Basics 3 June 30th, 2005 07:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.