|
-
Apr 21st, 2005, 10:52 AM
#1
Thread Starter
Hyperactive Member
how to test if a session variable exists ?
1) How may I test if HttpContext.Current.Session("my_MenuItem") exists
2) and if HttpContext.Current.Session("my_MenuItem") exists, how may I test if an object is allready attributed or if the variable is empty.
Thank you very much for your help!
-
Apr 22nd, 2005, 09:34 AM
#2
Frenzied Member
Re: how to test if a session variable exists ?
 Originally Posted by fabianus
1) How may I test if HttpContext.Current.Session("my_MenuItem") exists
2) and if HttpContext.Current.Session("my_MenuItem") exists, how may I test if an object is allready attributed or if the variable is empty.
Thank you very much for your help!
VB Code:
If Session("my_MenuItem") Is Nothing Then
' Empty
Else
' Not Empty
End If
-
Apr 22nd, 2005, 09:49 AM
#3
Thread Starter
Hyperactive Member
Re: how to test if a session variable exists ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|