Whether you switch between 6 different pages or use a panel control and keep
submitting 1 page in a wizard fashion is entirely up to you, store in your
datasets, store in session or use viewstate the important thing to get is
your validation correct so that it is physically impossible for users to
miss out fields or enter invalid data and then when you come to perform your
update, spawn a transaction and commit if successful else rollback if
failure.
Personally I like the tabbed approach using panels, yes there is a great
deal more going on in the page than anyone looking at it would think but
there is far less processing in the background as everything is still there
for you come the end ready to submit; circumstance, preference and any other
number of factors might sway your decision, one last comment though, I'd
tighten up your validation so that they simply can't submit the form
correctly if they miss critical fields, if it is not going to go into the
database because it is going to fail(rollback) what is the point of allowing
them to submit the form anyway?
regards,
J.
"Saket Mundra" <Sa*********@discussions.microsoft.com> wrote in message
news:3E**********************************@microsof t.com...
I have multiple web forms in my application. The user after logging on is
directed to form1 where he enters information desired. Once finished he is
directed to form2 and the same procedure goes on till form6. After user
has
entered information in all 6 forms the information needs to be entered in
the
database by performing a Transaction. If the data from any of the forms is
missing the Transaction is rolled back.
My query is where do i store the data from first five forms till i commit
the transaction?
Right now I am using a dataset, which I instatiated in form 1. As the user
is direcetd to form2 the data entered is stored in table1 which is added
to
dataset, which in turn is stored in cache. In subsequent forms I add new
Tables to same Dataset and after finishing all the forms I am using the
same
dataset to update the Database by carrying out a transaction in
DataAdapters
UpdateCommand Object.
Is this the way I shall perform the transaction? Pls Guide. Pls specify
the
correct methodology if I am doing it wrong.
--
Thank You.
Saket Mundra