Monday, March 26, 2012

Please Help

Hey guys, I wonder if you guys could please help me.

Say for instance you have 3 forms that collect data from the user via textboxes and dropdown lists. E.g. Form1 you enter information into the textboxes, click on the submit button and you get sent to form2... Enter some information and get sent to form3 etc. On a fourth form you display a summary of all the input that the user entered and then finally submit that information to a database via a submit button. How would you go abouts doing something like this? Could somebody please provide me with some sort of example. All the tutorials i've read so far deal with sending information to the next immediate page unlike what I would like to do. Im not really keen on use the wizard control either.

Thanks alot for any help!

Well there are *many* ways to do it...

Coming right to mind is storing information in session variables until the last page, then doing your database op there...

Here's something on Session variables:

http://msdn2.microsoft.com/en-us/library/87069683.aspx

Good luck =)


dcpennington2:

Well there are *many* ways to do it...

Coming right to mind is storing information in session variables until the last page, then doing your database op there...

Here's something on Session variables:

http://msdn2.microsoft.com/en-us/library/87069683.aspx

Good luck =)

Yep, Session variables is one way to go for sure, another idea is to use panels on you page with the form elements on and clicking on a button makes them viseble or not, that way all your form data should be stored in viewstate on a single page and then at the end you just submit all of the fields to the database.

It's just a though and I'm afraid I don't have an example, I'll see if I can get something togheter and send over if you want.

Good luck :)


Thanks guys!

0 comments:

Post a Comment