View Single Post
  #6 (permalink)  
Old April 9th, 2010, 01:24 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts

You're still not very clear about this.

Where does this data come from? From a database? Did the user just enter it and are you creating a wizard like interface? Do you need to store this only for one or two consecutive pages or must this data be available as long as the user is on the site? Does the data come from the user's profile? Does it need to be persisted between two browser sessions and so on?

You can forward data from one page to another using many different mechanisms, including session state, form state, cookies, query string variables, databases and more. Again, the one you need in this case depends on your scenario. Maybe you need session state, maybe you need to reacrhitecture your pages and use a single page model with, say, a Wizard control. Maybe you need to store the data in the database and rerequest it on each page request. It all depends.

So, be specific, and I can give you a useful answer. Otherwise, we're just going round in circles....


Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!