[thelist] if...or...then in asp
Steve Cook
steve.cook at evitbe.com
Mon Feb 25 02:17:00 CST 2002
Looks fine to me! You could possibly go with "isnumeric and > 0" first
instead of "not isnumeric or < 1", but otherwise I would pretty much use
this myself.
----------------------------------
WapWarp - http://wapwarp.com
Wap-Dev - http://www.wap-dev.net
Cookstour - http://cookstour.org
----------------------------------
> -----Original Message-----
> From: George Klingenhoffer [mailto:georgek at prispop.com]
> Sent: den 25 februari 2002 09:04
> To: thelist at lists.evolt.org
> Subject: [thelist] if...or...then in asp
>
>
> Using ASP, what's the proper way to evaluate this and is does
> this account
> for most ways that someone could enter a bogus value for
> 'curpage' in the
> url:
>
> <%
> If (Not IsNumeric(Request("curpage"))) Or (Request("curpage")
> < 1) Then
> CurrentPage = 1
> Else
> CurrentPage = Request("curpage")
> End If
> %>
>
> Thanks!
>
> GeorgeK
More information about the thelist
mailing list