hi all
i would like to know how to restrict user from entering numeric value
ina textbox..using C#
if user try to enter text it shouldnt be allowed..
i tried errror provider..
but it doesnt met my requirement..
thanks in advance for ur valuable reply
let me know the best to do it
urs
SKS
Add the following code in the script side of your html text box control
- onkeydown="if (window.event.keyCode > 47 && window.event.keyCode < 58){ return false; }"
All The Best
With Regards
Vijay. R