|
-
Jan 13th, 2005, 03:49 PM
#1
Thread Starter
Fanatic Member
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!
Last edited by drpcken; Jan 13th, 2005 at 05:14 PM.
-
Jan 13th, 2005, 04:04 PM
#2
Addicted Member
Re: looking for existence of Querystring
You could do:
If Request.Item("Param") is Nothing then
End IF
That is essentially the same thing.
-
Jan 13th, 2005, 04:13 PM
#3
Addicted Member
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
-
Jan 13th, 2005, 05:14 PM
#4
Thread Starter
Fanatic Member
Re: looking for existence of Querystring
Thanks for the suggestions guys, Token's worked perfectly.
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
|