I have a web page form that I want to validate.

How can I capture the Ascii code for the onKeyPress event of a web page textbox?

Such as (VB Code):
Code:
Private Sub txtFileNum_KeyPress(KeyAscii As Integer)
    If KeyAscii >= 97 And KeyAscii <= 122 Then
        KeyAscii = Asc(UCase(Chr(KeyAscii)))
    End If
End Sub
Thanks in advance.