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

What are the benefits of view state?

648


What are the types of caching in asp.net?

657


Mention the namespace that is used to include .net data provider for sql server in .net code?

583


What are the different methods of session maintenance in asp.net?

628


how to elimainte the similar data from the different tables

1781






Can we store object in viewstate?

630


Is react a template engine?

597


How do I use a proxy server when invoking a web service?

610


What is Partial PostBack in ASP.NET?

695


hi .net gurus. plz if any one has dumps on 70-631 and 70-541 on windows sharepoint services kindly mail me.

1352


Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc

634


What is app_code folder in asp net?

626


Which is better asp.net or php?

617


Explain how asp.net page works?

647


What do you mean by serialize?

634