Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have 4 pages,

In my 1st page(Details.aspx) I have four TextBoxes contains Name, Mobile Number, Email Id, Address.

I just want to get the details of my first page(Details.aspx) in last page(final.aspx).
Posted
Updated 17-Nov-13 20:09pm
v2
Comments
Rockstar_ 18-Nov-13 2:13am    
Where all the data is stroing?

Session or DB?
Venkat Kumar chigulla 18-Nov-13 2:28am    
It stored in database but i don't want to retrieve from Database. i just placed all the values in Lables like lblname, lblmobile, lblemail.......
Rockstar_ 18-Nov-13 2:14am    
You can do it through string in session or in Database..

 
Share this answer
 
There are various ways you can do that like

Session,queryString,Hidden Value etc..

go through the following link

Passing Value Between Pages in ASP.NET[^]
 
Share this answer
 
 
Share this answer
 
Hello Venkat ,

There are several ways to pass value / data from one page to another page .

some common ways are :

1. Query String
2. HTTP POST
3. Session State

try this link

Passing Value Between Pages in ASP.NET

thanks
 
Share this answer
 
Session State

Add data to String array and create an session
Ex:
Details.aspx Page

C#
String[] str = new String[] { TextBoxName2.Text , TextBoxMobile2.Text,  TextBoxId2.Text, TextBoxAddress2.Text };;
            Session["TextData"] = str;


Extract The Values From Session, In Page final.aspx page

C#
String[] RecievedDate = (String[])Session["TextData"];
            TextBoxName2.Text = RecievedDate[0];
	    TextBoxMobile2.Text = RecievedDate[1];
	    TextBoxId2.Text = RecievedDate[2];
            TextBoxAddress2.Text = RecievedDate[3];
 
Share this answer
 
Comments
Venkat Kumar chigulla 18-Nov-13 2:40am    
The above code full fill my requirements.... Thanks a lot..

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