Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Checking for URL Parameter

Reply
Thread Tools

Checking for URL Parameter

 
 
Keith
Guest
Posts: n/a
 
      01-13-2005
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?


 
Reply With Quote
 
 
 
 
Keith
Guest
Posts: n/a
 
      01-13-2005
What does it return if there are no values? Should I check for NULL in that
case?

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eNw90jX%...
> Check the Request.QueryString for values....
>
> --
> Curt Christianson
> Site & Scripts: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
>
> "Keith" <@.> wrote in message
> news:O3%23JYPX%...
>> 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?
>>

>
>



 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      01-13-2005
If Request.QueryString.Count > 0 then
'no querystring parameters
else
'querystring parameters present
end if

HTH,
Bob Barrows

Keith wrote:
> What does it return if there are no values? Should I check for NULL
> in that case?
>
> "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> news:eNw90jX%...
>> Check the Request.QueryString for values....
>>
>> --
>> Curt Christianson
>> Site & Scripts: http://www.Darkfalz.com
>> Blog: http://blog.Darkfalz.com
>>
>>
>> "Keith" <@.> wrote in message
>> news:O3%23JYPX%...
>>> 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?


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 
Reply With Quote
 
Morris
Guest
Posts: n/a
 
      01-13-2005
Bob Barrows [MVP] wrote:
> 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
 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      01-13-2005
Morris wrote:
> Bob Barrows [MVP] wrote:
>> 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

D'oh!
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking for null parameter pek Java 71 06-20-2008 02:33 AM
Parameter checking on an interfase w.m.gardella.sambeth@gmail.com Python 3 05-10-2007 02:13 AM
URL - substitution of a correct URL by a GUID like URL in favorites. Just D. ASP .Net Mobile 0 08-11-2004 04:26 PM
redirect URL's, return URL's, and URL Parameters Jon paugh ASP .Net 1 07-10-2004 05:29 AM
XSL: parameter checking Sharon XML 7 05-24-2004 05:46 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57