Click here to Skip to main content
14,335,363 members
Rate this:
Please Sign up or sign in to 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..
Rate this:
Please Sign up or sign in to vote.

Solution 1

   
Rate this:
Please Sign up or sign in to vote.

Solution 2

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[^]
   
Rate this:
Please Sign up or sign in to vote.

Solution 3

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
   
Rate this:
Please Sign up or sign in to vote.

Solution 5

Session State

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

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

String[] RecievedDate = (String[])Session["TextData"];
            TextBoxName2.Text = RecievedDate[0];
	    TextBoxMobile2.Text = RecievedDate[1];
	    TextBoxId2.Text = RecievedDate[2];
            TextBoxAddress2.Text = RecievedDate[3];
   
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100