Click here to Skip to main content
15,884,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would like a simple way to get the value from a previous web page.

I tried this:

var=Page.PreviousPage.FindControl("Hidden1")

but I need to have var be a string or a double to put it in a textbox on the current page.

If there are better ways of finding data from other pages feel free to let me know.

Using Visual Basic!
Posted
Updated 24-Feb-13 20:04pm
v2
Comments
Prakash Thirumoorthy 25-Feb-13 2:05am    
hi,

use session objects.

regards,
Prakash.T

use session objects,

value assigning

session["SessionName1"]="test";

getting values from session

var a = session["SessionName1"];


Regards,
Prakash.T
 
Share this answer
 
HI,

You can get the value from one page to another page by 3 different ways.

1. using session value.

2. using querystring values.

3. using cookies concept.

Use one of these following methods and you can able to get the value from previous page.

Thanks
 
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