Sign in | Join
Last post 05-19-2007 10:51 PM by dbland07666. 2 replies.
Sort Posts: Oldest to newest Newest to oldest
Hi All
I am struggling to maintain user information accross a sequence of 4 pages
now i'm trying to save data in viewstate till they can be transmitted to the next page
This code
ViewState(vPropertyRentalContactName) = "aa"
is not working
Hi,
if you want to persist something across pages on a per user basis I would probably use the Session object instead. Please take a look at this article ASP.NET: Nine Options for Managing Persistent User State in Your ASP.NET Application to get a better view of what's possible.
Grz, Kris.
When you say it's not working, do you mean that you set viewstate and go to a different page and lose the viewstate? Viewstate only works on the same page, to go from page to page use Session. Note that when you use session you have to take special precautions on a server farm or web garden (a web garden is a multi-cpu machine) since session does not automatically persist across machines.