Hi,
I have a simple form which accepts a year ( eg. '2002' )
and is then submitted to an asp page for validation.
How can I validate the posted string value is a valid
numeric value? I want '2002' to be accepted but '200 ' or
200a' to be trapped as an error.
I thought it would be something along the lines of:-
If Not Request.Form("Year" Is Numeric
do flag error
End If
I have a simple form which accepts a year ( eg. '2002' )
and is then submitted to an asp page for validation.
How can I validate the posted string value is a valid
numeric value? I want '2002' to be accepted but '200 ' or
200a' to be trapped as an error.
I thought it would be something along the lines of:-
If Not Request.Form("Year" Is Numeric
do flag error
End If