Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hello
i want to create multiples registration form in two pages. at the third page i want that user review his enterd data. can somebody tells me how is it possible?
Posted
Comments
shek124 18-Oct-11 9:03am    
You can try with the Multivew Control.

Save the data entered on each page into the Current Session (or a cookie) and read it when you load the final page.
A cookie has the advantage that it is persistent in the event of a disconnection.
 
Share this answer
 
Comments
saifullahiit 18-Oct-11 9:31am    
u r rite but there are 18 fields in each form how is it possible to save all of them in session.?
OriginalGriff 18-Oct-11 9:46am    
You can save whatever you need to in the session: http://msdn.microsoft.com/en-us/library/ms178581.aspx
There are a number of ways to achieve this;

http://msdn.microsoft.com/en-us/magazine/cc300437.aspx[^]


If you want it the easy and good way.
Try sessions and if not then cookies then viewstate and then url querystrings.
* Just go with sessions.

If you are well versed with php or jsp and html forms
Edit the 1st page form's action attribute to 2ndpage.aspx and in the 2nd page codebehind load event handler use the request object to get the POST data containing the values from the 1st registration form. Now write these values to hidden input html element or any hidden text box (do anything like this to preserver the data). Now edit the 2nd page form's action attribute to 3rdpage.aspx and just show all the data from the hidden textbox and the data from the fields of the 2nd page registration form to the user on this third page.
*U can use jquery serializetoarray or transform your your form data to json (GOOGLE for it) to convert your data to a more organized way which will help you save the data in the hidden field or hidden textbox more easily. This is an optional advice.


I hope I was able to solve your problem.
SQL
Watch my first article posted on codeproject and comment and vote:
http://www.codeproject.com/KB/HTML/speechinputapi.aspx
or http://blog.robinrizvi.info

Drop me a mail for any comments, suggestions or questions.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900