Hi Guys
I've made a id number textbox and wanna when users typing characters the server
tell them type digits
what should i do?

Why cant u try the Masked Edit control in Ajax Control Toolkit?


Use CompareValidator using Type comparison.


Manual Checking for ASCII - its not advisable.

use isnumeric

If (IsNumeric(TextBox1.Text)) Then
        End If

Use RegularExpressionValidator; which is used to determine whether the value of an input control matches the pattern defined by regular expression.

Validation exrpession for textbox that only accepts integer value is

Set ErrorMessage property to Enter digits Only or what ever you want.