Hi Julian,
Yes, both work in
VB, so you can choose either.
I prefer to use IsNot Nothing, as it more closely resembles its C# counterpart, where comparing with String.Empty doesn't work. In C# you get null when the query string field doesn't exist which isn't equal to String.Empty. It also looks a little better, as a missing query string parameter feels like null / Nothing, not an empty string (which would indicate the param was there, but without a value).
Somehow, in C#
null != String.Empty
where in
VB:
Nothing = String.Empty
Feel free to choose the one you like; both work fine.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
Beginning ASP.NET 3.5 : in C# and VB,
ASP.NET 2.0 Instant Results and
Dreamweaver MX 2004
Want to be my colleague? Then check out this post.