Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Maintaining page state when navigating a wizard

Reply
Thread Tools

Maintaining page state when navigating a wizard

 
 
Jesper Lauridsen
Guest
Posts: n/a
 
      11-10-2003
I am developing an ASP.NET application for a Questionnaire that spans
over several pages.

The entire Questionnaire code resides in one ASPX page. When a user
submits a questionnaire page by clicking a "Next page" button, I want
to 1) validate the answers and 2) render the next page (but still the
same ASPX page) if the questionnaire page validates (wizard style).

One design solution is to have a session variable hold the current
page number. When the user presses the button he will be sent on the
next page, eg. "intActivePage + 1".

This works fine until the user presses the "Browser Back Button" since
the Session Variable is uninformed about the History Navigation: There
has been no round-trip to the server. And so, when the user presses
the "Next page" button, he will jump two pages forward instead of one.

Normally (in the old web-programming paradigme) I would hold the
active page in the query-string, like eg.
"localhost/questionnaire?page=2". Since the querystring is part of the
URL, the "page" variable is automatically kept in sync with the acutal
page that the user is viewing -- even if he presses the Back Button
and re-submits the previous page.

However, this does not seem to be compatible with ASP.NET programming
paradigme. Has anyone had experience with this sort of thing. Is there
a recommendable design pattern that I should know about.

Thanks in advance

___________________ ___ _
Jesper Lauridsen
Technical e-Project Manager
The Lundbeck Institute
Tel.: +45 36 43 91 61
Mob.: +45 40 25 35 51
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
3 ESSENTIAL TOOLS FOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLSFOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLS FOR STARTING ANDMAINTAINING... Oanh Bui C++ 0 04-27-2009 12:51 PM
3 ESSENTIAL TOOLS FOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLSFOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLS FOR STARTING ANDMAINTAINING... Oanh Bui C Programming 0 04-27-2009 12:51 PM
3 ESSENTIAL TOOLS FOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLSFOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLS FOR STARTING ANDMAINTAINING... Oanh Bui Python 0 04-27-2009 12:46 PM
Maintaining State on Master Page Without Session Variables Sam ASP .Net 4 10-07-2006 04:04 AM
Page not found error when navigating from the child page back to the parent page Samy Java 0 02-04-2006 01:29 AM



Advertisments