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

if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.

1849


What is the use of ASP.NET routing?

568


Is viewstate secure?

521


What is s2s tracking?

547


What is razor? : asp.net mvc

570






What is the benefit of WebAPI over WCF?

582


Explain about Application and Session Events ?

650


To bind columns manually which tags do you need to add within the asp:datagrid ?

561


Explain weak typing and strong typing.

572


What is the purpose of master page?

529


What is event bubbling?

618


What is the difference between page-level caching and fragment caching?

543


What are httphandlers and httpmodules and difference between them?

534


What is masterpage?

518


Why we are using mvc instead of asp.net? : Asp.Net MVC

534