Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
good evening

i want to create a registration page where i will take user details as one detail per one page,ie

page 1

firstname textbox

button for going to next page

page 2

lastname textbox

button for going to next page

like this it goes on

and in the last page register button will be present where if I press that button all values in all pages should be taken and should be stored in database.

thank you
Posted
Comments
Rickin Kane 14-Mar-13 6:38am    
you can use Wizard control in asp.net
Sumit_Kumar_Sinha 14-Mar-13 6:42am    
simply u can store all textbox values in session and at the time of inserting the record u can use session value ..............

Hi Try This...


Store your information using session

C#
Session["SNo"] =TextBox1.Text;

and for inserting data into database

SQL
insert into tablename(SNO)values('" + Session["SNo"].ToString() + "')




Thanks
shafi
 
Share this answer
 
v2
Refer following thread:
Transferring Data Between ASP.NET Web Pages[^]

Also have a look on different state management techniques: How to pass data from one form to another in C#?[^]
 
Share this answer
 
Some add on's in solution 2:
MSDN : ASP.NET State Management Overview[^]
State Management in ASP.NET - Introduction[^]

And many more here[^].


--Amit
 
Share this answer
 

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