Results 1 to 3 of 3

Thread: [2005] job cart/shopping cart

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2007
    Posts
    12

    Post [2005] job cart/shopping cart

    Hello all,
    i'm doing a library management system using VS 2005 c#.net for my eduaonal purpose.
    here i want to use cart like shopping cart/job cart.

    here Student will select books, then they will save books in cart. Then system will ask for user ID & password. if they provide then save books in their cart, i already did this, problem is:if they dont have userID i redirect them in log-in page (where normally user can login also without selecting book). But when they create new user how do i can get their selected books and how i can track that this user selected books so that i need to save books according newly created users??
    Please give me idea's..if possible code also.
    Thanks

  2. #2
    Fanatic Member ZeBula8's Avatar
    Join Date
    Oct 2002
    Posts
    548

    Re: [2005] job cart/shopping cart

    i'm assuming you have to have a class that holds these books, along with the userid you're using (sessionID perhaps?)
    you can save this class Book to a List that's attached to the sessionID, and then when new user is created, and logs in, attach the List to this new user.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] job cart/shopping cart

    How are you currently maintaining your cart? It must either be in a cookie or in a session variable. In either case, once they login, you only need to re-read the values in the cookie or session variable.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width