TheConeHead
Programmer
I am trying to read a session variable with:
String sn = Session["uname"];
Now this session has not been set, so I was hoping to get "undefined", instead I get the following error:
Cannot implicitly convert type 'object' to 'string'
How do I read a session vars value?
![[conehead] [conehead] [conehead]](/data/assets/smilies/conehead.gif)
String sn = Session["uname"];
Now this session has not been set, so I was hoping to get "undefined", instead I get the following error:
Cannot implicitly convert type 'object' to 'string'
How do I read a session vars value?
![[conehead] [conehead] [conehead]](/data/assets/smilies/conehead.gif)