there's a way by saving the data and user id in a table, and you can retrieve the for the user for any page, it will help you also if the user close the page by mistake, he will not need to refill the card again
Main Topics
Browse All TopicsI have a shoppingcart datalist that gets updated with products everytime the user clicks add to cart. When the user is done filling the cart they click checkout. At that point I want to retreive all the values from teh datalist and display them on the next page. I'deally I would prefer to just pass the entire datalist to the next page, then perform the retreival on the next page. I have thought about taking the datalist and converting it to xml and then formatting it on the next page but I couldnt get that to work. Here is the code I used for that inside the onclick event of the Checkout button:
//info: DataList = ShoppingCartList
DataSet BackDataSet = (DataSet)ShoppingCartList.
string xml = BackDataSet.GetXml();
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
why cant you simply grab the shopping cart from the database again?
usually you store all shopping cart items in a database table:
CREATE TABLE [dbo].[tblShoppingCart] (
[id] [int] IDENTITY (1, 1) NOT NULL ,
[publishdate] [smalldatetime] NOT NULL ,
[sessionid] [bigint] NOT NULL ,
[productid] [bigint] NOT NULL ,
[quantity] [bigint] NOT NULL) ON [PRIMARY]
GO
Business Accounts
Answer for Membership
by: kjo4jcPosted on 2003-08-15 at 13:47:55ID: 9162649
If you store your DataSet in a Session variable it will be accessible from the other .aspx pages of your webapp when they
come up in Page_Load.