One application have three forms for registration .submit
button is at third form.after filling three forms only u
have to click submit button.After clicking the submit
button all the values in first,second& third form saved on
sql server.how to handle this situation .

Answer Posted / anand nethala

Create a class that contains properties that are mapped to
the fields in all the 3 pages.
In first page create an instance of the class and fill the
corresponding properties on the class to the fields values
in the page. and transfer the page to 2nd page using
Server.Transfer. In the second page retrieve the class
instance by using the Page.PreviousPage Property and you can
.In the same way you can do in the 3rd page and so on. when
u r saving the details to the DB..u'l have the total object
that contains all the field values in all the traversed pages.

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you handle unmanaged code exceptions in asp.net?

768


What is the difference between asp.net mvc and asp.net webforms? : asp.net mvc

764


What is difference between view state and session state?

672


How to manage different kinds of sessions in ASP.NET?

775


What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?

705


How many types of validators are there in asp net?

695


What are Caching techniques in .NET

804


Which is better viewstate or session?

701


What are sessions in asp net?

738


Explain what does mvc represent in asp.net? : asp.net mvc

699


What permissions do asp.net applications posses by default?

835


What are the Difference between asp.net and asp ?

773


Who can consume WebAPI?

761


Differentiate between authentication and authorization.

760


What’s the difference between response .redirect and server.transfer?

731