Hillbilly replied to Hanumant Ganpat
09-Feb-10 10:57 AM
//Page1.aspx
Session["FirstName"] = FirstNameTextBox.Text;
//Page2.aspx
string firstName = Session["FirstName"].ToString();
--or--
//Page1.aspx
Session["NumberOfBitchyGirlfriends"] = 3;
//Page2.aspx
int bitchbitchbitch = (int)Session["NumberOfBitchyGirlfriends"];
NOTE: since you may --literally-- mean you want to transfer data from one
application to another we cannot use Application2 to access the Session
generated in Application1. If Application2 is in the same domain as
Application1 (mywebsite.com for example) we can then write a cookie in
Application1 to mywebsite.com that contains the Session variable and then
read the cookie from Application2 that also exists in the same domain
mywebsite.com; if not the same domain use the database or an XML file to
store the data as required.