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
What is preprocessor in .net?
What language is asp.net written in?
What’s the use of “GLOBAL.ASAX” file?
How do I use response redirect?
What are main return types supported in Web API?
How to Insert/Add in ASPXgridview
How can we inherit a static variable?
What does occur first in ASP.Net, Authentication or Authorization?
Explain the difference between response.redirect vs server.transfer
What is the difference between cookie and session?
How long do session variables last?
Define repository pattern in mvc.net? : asp.net mvc
Which type of state management is provided by Query String in ASP.NET?
Is web config mandatory?
Is asp.net 64-bit enabled? How?