<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.