Strange form request - Ideas or input requested

V

VK

Hello:

We have the regular aspx form with checkboxlist, text boxes etc, all
this information is inserted into database and emailed to one user,
which is working fine. What they would like to do is - once the user
submits this information it takes them to another screen which lists out
information typed/selected and then once they are satisfied with this
submit again which would then insert into database and email an user.

Is it possible to add another step before the form is submitted?

Many thanks,
vani
 
V

VK

Hi Gaurav,

the second screen is to show the user the information he keyed in, if
any part is incorrect then he can use the browser back button and
re-enter the information. It is like a confirmation screen for the user
before this information is submitted to database and emailed to another
user.

We are using .Net 1.1 - could you explain a bit more?

Thanks.
Vani
 
M

MasterGaurav

Great then... Panel is there for your rescue.

Divide your page into three panels.

Panel 1: For information input
Panel 2: Information confirmation
Panel 3: Success report (this can optionally a forward to a new /
success page so that the information is not resubmitted on reloading)

One panel will be visible at one time.

Steps:
1. Make Panel-1 visible. Keep a hidden variable to track the panel
number.
2. Submit the form. Increase panel number by 1.
3. Show panel 2. Give a back link. Preferably, don't ask him to press
Back button since if cache is set to "Automatically detect", all his
data will be lost. IE is very bad in this.
4. Back link will show panel 1 (of course, decrease the panel number by
1)
5. A confirm link will move to panel 3.

Note that since everything is happening within one page, all data will
be stored in viewstate and never lost. doesn't matter even if the cache
invalidation is set to "Everytime the page is loaded" on client.



--
Cheers,
Gaurav Vaish
http://www.mastergaurav.org
http://mastergaurav.blogspot.com
--------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top