var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57))
<asp:TextBox ID=”txt_maxage” Onkeypress=”return isNumberKey(event)” runat=”server”></asp:TextBox>
Blogged with Flock
I want the user to enter . for decimal place. How to do this.
Code is quite good.
thank u …
I have one question
why you input “charCode > 31” to condition because
“charCode 57” it ok
It works fine!
I added attributes in codebehind file;
it too woks good
Thanks so much… super
thank you very much
In my page it is not working.. please help
What is the problem you are facing. Please let me know clearly/