[thelist] if...or...then in asp

George Klingenhoffer georgek at prispop.com
Mon Feb 25 02:06:01 CST 2002


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