Checking for URL Parameter

K

Keith

Is it possible to do a quick check to see if you were refered to the page
with URL parameters and if so perform an action?
 
B

Bob Barrows [MVP]

If Request.QueryString.Count > 0 then
'no querystring parameters
else
'querystring parameters present
end if

HTH,
Bob Barrows
 
M

Morris

Bob said:
If Request.QueryString.Count > 0 then
'no querystring parameters
else
'querystring parameters present
end if

HTH,
Bob Barrows

Other way round, surely?

If Request.QueryString.Count > 0 then
' there are more than 0 so there are querystring parameters present
else
'no querystring parameters present
end if

Morris
 
B

Bob Barrows [MVP]

Morris said:
Other way round, surely?

If Request.QueryString.Count > 0 then
' there are more than 0 so there are querystring parameters
present else
'no querystring parameters present
end if

Morris
D'oh!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top