473,732 Members | 2,205 Online
Bytes | Software Development & Data Engineering Community
+ 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 1611
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.mi crosoft.com> wrote in
message news:40******** *************** ***********@mic rosoft.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("USerIn fo") =MyUserInfoOBje ct

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.mi crosoft.com> wrote in
message news:40******** *************** ***********@mic rosoft.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
5454
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 module to implement this. Capturing current program state and neatly replacing it later is proving to be trickier than I first imagined, so I'm here to ask for a little direction from wiser minds than mine! When my program initializes, each game...
0
1332
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 the 2 protocols. We have SSL set up on the site so that it can be accessed via the same domain: http://www.mydomain.com/login.aspx
8
4868
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 differences in the way both the objects are handled by IIS. Are both objects stored in different memory spaces? I can access both the objects in my web page. I will be grateful if some one can help me understand the difference.
8
2668
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? Is there a method for detecting what page the user came from when a page is accessed using history.go()? -- Ed Jay (remove M to respond by email)
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8774
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9447
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9307
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9181
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6735
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4550
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.