Numerictextbox in asp.net

numeri , textbox , numerictextbox Etāwah, India
  • 11 years ago
    Hi, i m unable to make a complete numeric text box which takes only values 0-9. I have written javascript for it and its working partially but i m unable to prevent that charter to get enter in textbox. function GetKeyPress() { var key=window.event.keyCode; if (key >= 97 && key <= 122 || key >= 65 && e.KeyChar <= 91) { alert("check the value"); } }

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Programs must be written for people to read, and only incidentally for machines to execute.”