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 is the difference between CC and BCC?

606


What is the typical session identifier?

567


How do you open a page in a new window?

547


Do session use cookies in asp net?

490


What does session_start () do?

616






How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.

1414


If we remove web.config or machine.config from the application then, is this application will works?

590


What are the two Layouts supported by a Web form in ASP.NET?

548


Give me one example of Web API Routing?

596


What are the features of asp net?

510


Explain how can you debug your .net application?

528


How do you identify that the page is postback?

536


What are the page life cycle events?

488


Contrast oop and soa. What are tenets of each16. How does the xmlserializer work? What acl permissions does a process using it require?

516


Is post back property in asp net?

521