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