looking for existence of Querystring [Resolved]
I'm trying to write a way to check for the existance of a querystring, not its value.
I was thinking something like
If Request.Querystring("Param") is Nothing then
end if
I'm not worried if it has a value or not, I just wanna check to see if its there or not.
Thanks!
Re: looking for existence of Querystring
You could do:
If Request.Item("Param") is Nothing then
End IF
That is essentially the same thing.
Re: looking for existence of Querystring
I suppose you could also just count the collection if you were only passing one querystring.
VB Code:
Dim Count As Integer = Request.QueryString.Count
if Count = 0 then
end if
Re: looking for existence of Querystring
Thanks for the suggestions guys, Token's worked perfectly.