Re: Temporarily saving data from several pages.

Tech-Archive recommends: Fix windows errors by optimizing your registry




Store the data in a custom class or DataSet. When the first page of
the wizard is hit, instantiate your class/DataSet and store it in the
user's session based on a random key (Guid works well). Pass the guid
along to each page via URL. On each page of the wizard, get this
class out based on the guid and store any changes. On the last page
send all the data to the database.

You could also store the data in the database at each step and then
have some way to differentiate completed vs abandoned questionnaires.
Again generate a unique key on first page and use this as the db
questionnaire key and pass along page to page. The advantage here is
you can get information on abandoned questionnaires later (i.e., does
everyone give up after 6 pages). Depending on the application, this
data could be very useful.

I've also seen people simply store this information in the session
without using any kind of URL key. This is bad as it assumes each
user is filling out one questionnaire--remember people can have
multiple browser windows or tabs. Ticketmaster does this and caused
me to get tickets to the wrong venue once when I opened two different
venues in different tabs. The above procedure will protect against
that (unless someone opens a new tab in the middle of the wizard).

HTH,

Sam


------------------------------------------------------------
We're hiring! B-Line Medical is seeking Mid/Sr. .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.



On Mon, 21 Aug 2006 11:47:02 -0700, VMI
<VMI@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I'm working on a web application that's basically a questionaire that
consists of 8 pages. Each page has different data that needs to be saved. I
have to either save all the data from all 8 pages OR save nothing.
What's the best way to temporarily save this data and then insert (or
update) all this data in bulk at the end of the questionnaire?

Any help is appreciated.

Thanks.

.



Relevant Pages

  • RE: Syncing fax server with company web
    ... That should work but I don't have the fourth option "D: Store in a document ... library" in the wizard. ... I only have email, store in a folder, and print as ... > also the name of the Small Business Server computer). ...
    (microsoft.public.windows.server.sbs)
  • Re: What am I doing wrong?
    ... I chose elven wizard. ... to reach to the mines while Exl lvl 1-3. ... a tiny 2x2 general store which was easy to clean up by credit cloning. ... should rely on daggers more and use whatever armor is available, ...
    (rec.games.roguelike.nethack)
  • How to Populate Text Boxes with Values selected from a Combo Box
    ... provided you're not trying to *store* ... these other fields in the form's underlying table. ... This can be done most easily with the wizard. ... >selection of Combo Box" and followed the solution ...
    (microsoft.public.access.gettingstarted)
  • Re: Access combo box-show name, not ID, in table?
    ... created a record you would store that person's name. ... Now use the Combo Box Wizard to create a combo box to find a record ... Now that you have a form, you can make a query based on the form's Record ... >> what table to open etc...but provide a nice menu that opens up a nice form. ...
    (microsoft.public.access.gettingstarted)
  • Re: Wizard problem!
    ... correct records that just was created by the user throug the wizard. ... Today I store ONE primary key in ONE global variable. ... > type of membership, expire date etc. ...
    (microsoft.public.access.formscoding)