Session Variables is only working on the Same Page but its not transfering the value to another page in asp.net 2.0
-
Session Variables is only working on the Same Page but its not transfering the value to another page in asp.net 2.0.How can I get a Session value.
KR.RAMESH
-
Session Variables is only working on the Same Page but its not transfering the value to another page in asp.net 2.0.How can I get a Session value.
KR.RAMESH
Member 3824224 wrote:
Session Variables is only working on the Same Page but its not transfering the value to another page in asp.net 2.0
please clear your problem .:confused::confused:
Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"
-
Session Variables is only working on the Same Page but its not transfering the value to another page in asp.net 2.0.How can I get a Session value.
KR.RAMESH
-
Session Variables is only working on the Same Page but its not transfering the value to another page in asp.net 2.0.How can I get a Session value.
KR.RAMESH
That's not possible. You need to post some code so we can see where your error is.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Session Variables is only working on the Same Page but its not transfering the value to another page in asp.net 2.0.How can I get a Session value.
KR.RAMESH
Are cookies enabled on the web browser? What type of session are you using?
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
Are cookies enabled on the web browser? What type of session are you using?
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis LevinsonLogin.aspx gstrUserId = gmdataset.Tables(0).Rows(0)(0) Session("USERID") = gstrUserId game.aspx dim lstrvalue as string lstrvalue = Session("USERID").ToString But i am not getting a value .but i am getting nothing only.How can i get a session value.
KR.RAMESH
-
Are cookies enabled on the web browser? What type of session are you using?
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis LevinsonLogin.aspx gstrUserId = gmdataset.Tables(0).Rows(0)(0) Session("USERID") = gstrUserId game.aspx dim lstrvalue as string lstrvalue = Session("USERID").ToString But i am not getting a value .but i am getting nothing only.How can i get a session value.
KR.RAMESH
-
That's not possible. You need to post some code so we can see where your error is.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
Login.aspx gstrUserId = gmdataset.Tables(0).Rows(0)(0) Session("USERID") = gstrUserId game.aspx dim lstrvalue as string lstrvalue = Session("USERID").ToString But i am not getting a value .but i am getting nothing only.How can i get a session value.
KR.RAMESH
-
Login.aspx gstrUserId = gmdataset.Tables(0).Rows(0)(0) Session("USERID") = gstrUserId game.aspx dim lstrvalue as string lstrvalue = Session("USERID").ToString But i am not getting a value .but i am getting nothing only.How can i get a session value.
KR.RAMESH
Member 3824224 wrote:
Session("USERID") = gstrUserId
Did you debug it to make sure this line is storing a value ? If so, then my guess would be that your server is set up to store sessions state in a DB that is not set up properly, or something along those lines. This code will just work on a properly set up PC, there's really no room for it to fail.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )