Sorry if I was mistaken, it seemed to me you were being a smart aleck.
Anyway, he apparently wanted to limit the entry to digits - FYI here's another neat way to strip everything but numbers from a string using javascript with asp:
<script language="javascript" runat="server">
function ExtractNumbers(MixedString){
if(MixedString){
MixedString = MixedString.replace(/\D/g,'');
return MixedString;
}
}
</script>
You'd call that function just like a VBScript function. So, in addition to the way Oracleguy showed above, you could also see if something extracted from a database was only numeric like:
<%
If myString <> ExtractNumbers(myString) Then
'It's not numeric!
End If
%>