What if the value passed in an ID Query is not a Numerical value?
Then we check to ensure it is a numerical value before allowing it to proceed.
Assign our Variables and our Values first.
[Variables]
CFFCS | CarrzSynEdit: | ASP/VBScript

<%
getType = request.querystring("Type")
getID = request.querystring("ID")
if getType="One" then
thePage = "Page Title"
end if
if getID = "1" then
theID = "Page ID"
end if%>

[If Statements]
CFFCS | CarrzSynEdit: | ASP/VBScript

<table>
<%if not IsNumeric(getID) then%>
<tr><td colspan="2">Value is not a Numerical Value.</td></tr>
<%else%>
<tr><td><%=theID%></td><td><%=thePage%></td></tr>
<tr><td><%=getID%></td><td><%=getType%></td></tr>
<%end if%>
</table>


The IsNumeric() function checks whether the value passed is a number or a text value.
We check whether it is NOT a number first, show the error if it is text, and then show the actual values if it is a numerical value.