Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
A variable is defined in PageA.aspx (e.g. string s = "Hi";). Is it possible for PageB.aspx to get the value? If yes, how? Thanks.
Posted
Comments
Richard C Bishop 7-Nov-13 15:09pm    
This is a homework question, you should do it yourself so that you can learn from this experience.

In A.aspx Session["field1"] = "value1";
In B.aspx string field1 = (string)(Session["field1"]);
Solved
 
Share this answer
 
Please see my past answer: Passing Data Between Pages[^].

—SA
 
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