Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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
 
Old September 20th, 2005, 11:17 AM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default Storing Data Strucures in the Session

Hi,

What's the best way to store complex data structures in the session object? I have a data stucture that I use for Orders (e.g. CustomerID, Name, Address etc.) that I want to store between pages on my site. Up to now I've been storing each variable in the session separately, e.g.

Code:
Session("CustomerID") = Me.CustomerID.Text
Session("Name") = Me.Name.Text
Session("Address") = Me.Name.Text
Etc.

But this is getting kind of tiresome. Is there some easy way to store an instance of a data structure in the session, say some .toXML method as there is with datasets? Thanks.

Aaron




 
Old September 21st, 2005, 02:24 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

If you are using a data set or data table, you can store them in a sesson.






Similar Threads
Thread Thread Starter Forum Replies Last Post
storing a gridview to session in asp.net 2.0 thas123 ASP.NET 2.0 Basics 0 December 20th, 2006 06:12 AM
Storing return value of a Stored Proc in a Session mahajanvit ASP.NET 2.0 Basics 0 November 2nd, 2006 10:16 AM
Storing a dataset across a session jainnid General .NET 1 December 2nd, 2005 03:17 PM
Storing objects in Session variables mega ASP.NET 1.0 and 1.1 Basics 8 November 16th, 2004 02:38 PM
Storing PHP Session data in a MySQL db? CFerthorney PHP Databases 1 May 10th, 2004 08:33 AM





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