Newbie Questions - Easy

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a ASP.NET app I'm writing and I have a form that is spread across four
webforms. I do not wish to store each step to DB and I do not wish to store
the info in hidden tags in the code of the page. Can I create a structure in
which to store the information in and store it a session variable?

Any information on this is greatly appreciated!
Thanks!
 
Easiest Solution:

You have just one physical page with 4 Panels to represent each logical
page.
When they click the "next" button, hide Panel1 and show Panel2.
Get the idea?
This way you just have one physical page that contains all your fields and
all your data so this simplifies things greatly.
 
Pop the forms into different panels on the same page. You can then hide the
panels as you move to the next step. You can then wait until the last button
is pushed to push the entire form to the database. Still looks like four
pages, but you use ViewState to handle saving the data instead of some
session variable, etc.


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
Geeze - thats easy - I never thought of that. Would that be an adviseable
approach rather than creating several pages? Validation works the same?

Ryan
 
It should work out pretty well. I don't know the details of your app, but
I'd say it's worth trying out.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
 
Geeze - thats easy - I never thought of that. Would that be an adviseable
approach rather than creating several pages? Validation works the same?

If it's any help, I have just done exactly this in one of my first
ASP.NET apps and it was very easy. I didn't have to worry about what
happened to the data as the view state took care of it. Coding the
panels was easy too. The whole thing worked out really well. Validation
is exactly the same as you add validators per control, so it does not
make any difference whether the parts of the form are in the same
physical file or not.

HTH
 
Back
Top