473,473 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Restoring state to a web page accessed previously

I am implementing a series of sequential web pages, a wizard, whereby the
user can step back to a previous page. I want to restore the state of those
pages if the user navigates back to them. Only being new to ASP.Net, I am
not sure if it provides facilities to manage this scenario. Any info would
be appreciated, thanks.

--
McGeeky
http://mcgeeky.blogspot.com

Nov 19 '05 #1
4 1589
Try to use the session or applciation state object
Or even cookies

"McGeeky" wrote:
I am implementing a series of sequential web pages, a wizard, whereby the
user can step back to a previous page. I want to restore the state of those
pages if the user navigates back to them. Only being new to ASP.Net, I am
not sure if it provides facilities to manage this scenario. Any info would
be appreciated, thanks.

--
McGeeky
http://mcgeeky.blogspot.com

Nov 19 '05 #2
While the use of cookies is a nice option, but one caveat with cookies is
that it can be tampered with or deleted by the user. Another thing to
remember is that it has a storage limitation of 4KB only. If you are not
concerned with any of the above, you could also save cookies in memory by
setting cookieless= true in the session state settings in your web.config
file.

But as always you can never go wrong with Cache, Session state management as
Serge suggested.

Cheers,

Obi Oberoi

"serge calderara" wrote:
Try to use the session or applciation state object
Or even cookies

"McGeeky" wrote:
I am implementing a series of sequential web pages, a wizard, whereby the
user can step back to a previous page. I want to restore the state of those
pages if the user navigates back to them. Only being new to ASP.Net, I am
not sure if it provides facilities to manage this scenario. Any info would
be appreciated, thanks.

--
McGeeky
http://mcgeeky.blogspot.com

Nov 19 '05 #3
Thanks Serge.

By using the session state, does that mean I need to put all of the state in
to the session manually?

Is there no way to reuse the viewstate mechanism that ASP.Net uses when you
operate on a single page, but somehow preserve across pages?

--
McGeeky
http://mcgeeky.blogspot.com
"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:40**********************************@microsof t.com...
Try to use the session or applciation state object
Or even cookies

"McGeeky" wrote:
I am implementing a series of sequential web pages, a wizard, whereby the
user can step back to a previous page. I want to restore the state of
those
pages if the user navigates back to them. Only being new to ASP.Net, I am
not sure if it provides facilities to manage this scenario. Any info
would
be appreciated, thanks.

--
McGeeky
http://mcgeeky.blogspot.com


Nov 19 '05 #4
Yes, with session you have to handle them manually. In a sesion state you can
event store a complete object lke :

Session("USerInfo") =MyUserInfoOBject

Remeber that session stand for single user, otherwise use application state

ViewState can be use to retrive Readonly controls properties

"McGeeky" wrote:
Thanks Serge.

By using the session state, does that mean I need to put all of the state in
to the session manually?

Is there no way to reuse the viewstate mechanism that ASP.Net uses when you
operate on a single page, but somehow preserve across pages?

--
McGeeky
http://mcgeeky.blogspot.com
"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:40**********************************@microsof t.com...
Try to use the session or applciation state object
Or even cookies

"McGeeky" wrote:
I am implementing a series of sequential web pages, a wizard, whereby the
user can step back to a previous page. I want to restore the state of
those
pages if the user navigates back to them. Only being new to ASP.Net, I am
not sure if it provides facilities to manage this scenario. Any info
would
be appreciated, thanks.

--
McGeeky
http://mcgeeky.blogspot.com


Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jacob H | last post by:
Hello list... I'm developing an adventure game in Python (which of course is lots of fun). One of the features is the ability to save games and restore the saves later. I'm using the pickle...
0
by: Daniel Malcolm | last post by:
Hi I have a site where I would like some pages to be accessed via SSL (login and payment etc) and others via regular http. However I'm not sure whether Session state can be maintained between...
8
by: Vishwanathan Raman | last post by:
Hi I have a declared a static DataSet object SOBJ in Global.asax.I also have a localy defined DataSet LSOBJ in Global.asax which I am storing in Application State.Is there any technical...
8
by: Ed Jay | last post by:
I want to use history.go() to navigate between my previously loaded pages. I'm looking for a way to trigger a function call when a page is accessed using history.go(). Is there an event generated?...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.