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

Howard Cheng thelist at lists.evolt.org
Mon Feb 25 17:30:00 2002


Don't forget that Request("var") also returns a String, so as written below
this would generate a type mismatch error.

At 11:24 AM 2/25/2002 -0800, Anthony Baratta wrote:
>At 12:04 AM 2/25/2002, George Klingenhoffer wrote:
>><%
>>If (Not IsNumeric(Request("curpage"))) Or (Request("curpage") < 1) Then
>>         CurrentPage = 1
>>Else
>>         CurrentPage = Request("curpage")
>>End If
>>%>
>
>::::::::::::::::::::::
>Howard Cheng
>howcheng@ix.netcom.com
>AIM: bennyphoebe
>ICQ: 47319315