I have a session variable called Session("userCart")... how in vb do I check
to see if Session("userCart") has anything in it.
I've tried
If Session("userCart").Equals(DBNull.Value)
but this doesn't seem to work.If Session("userCart") = String.Empty
-- Bryan wrote: --
I have a session variable called Session("userCart")... how in vb do I check
to see if Session("userCart") has anything in it.
I've tried
If Session("userCart").Equals(DBNull.Value)
but this doesn't seem to work.
If Not Session("UserCart") Is Nothing Then
End If
If you are loading with an empty string, the other suggestion here will
work. Otherwise, it might error with his idea.
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
****************************************
********
Think Outside the Box!
****************************************
********
"Bryan" <anonymous@.discussions.microsoft.com> wrote in message
news:CC3A2D9D-0299-4856-985F-AB6818B548B2@.microsoft.com...
> I have a session variable called Session("userCart")... how in vb do I
check to see if Session("userCart") has anything in it.
> I've tried
> If Session("userCart").Equals(DBNull.Value)
> but this doesn't seem to work.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment