For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > March 2005 > Temporarirly storing web form data to be inserted into Database ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Temporarirly storing web form data to be inserted into Database ?
Saket Mundra

2005-03-31, 4:01 pm

I have a web application with two forms. After user enters data in first form
he is directed to the second form. After Filling the second form as he clicks
on save button, the data entered is stored in the database using a
Transaction Object, That inserts data, entered by user in both the forms, in
the database.

My problem is where shall i store the data entered by the user in the first
form when he is redirected to next form and till i perform the transaction?
--
Thank You.

Saket Mundra
Joseph Byrns

2005-03-31, 4:01 pm

In a Session :

Session("TemporaryData") = DatatableContainingTemporaryData


"Saket Mundra" <SaketMundra@discussions.microsoft.com> wrote in message
news:A1C3E9EC-3773-4ED0-8B98-71B77C54B6A1@microsoft.com...
>I have a web application with two forms. After user enters data in first
>form
> he is directed to the second form. After Filling the second form as he
> clicks
> on save button, the data entered is stored in the database using a
> Transaction Object, That inserts data, entered by user in both the forms,
> in
> the database.
>
> My problem is where shall i store the data entered by the user in the
> first
> form when he is redirected to next form and till i perform the
> transaction?
> --
> Thank You.
>
> Saket Mundra



Brock Allen

2005-03-31, 4:01 pm

The question is can your users deal with the potential for the loss od data
from page 1 to page 2? If not, then store the data in the database inbetween
the pages, in a temp save table, perhaps. If they can deal with the possibility
of loss of data, then Session state is an acceptable place to store state
across pages.

-Brock
DevelopMentor
http://staff.develop.com/ballen



> I have a web application with two forms. After user enters data in
> first form he is directed to the second form. After Filling the second
> form as he clicks on save button, the data entered is stored in the
> database using a Transaction Object, That inserts data, entered by
> user in both the forms, in the database.
>
> My problem is where shall i store the data entered by the user in the
> first form when he is redirected to next form and till i perform the
> transaction?
>
> Saket Mundra
>




Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com