Cancel Key press event
Posted
by Asim Sajjad
on Stack Overflow
See other posts from Stack Overflow
or by Asim Sajjad
Published on 2010-04-07T09:27:10Z
Indexed on
2010/04/07
9:33 UTC
Read the original article
Hit count: 319
How can I return the key, mean if I want to allow only interger value in the textbox , how can I don't allow user to not enter value other then integer, regarding, keypress event, I know there are other ways such as expression to match the string value, but I want to not assign invalid value to the textbox.
if (( value >0 a&&(value <=9)) then assigned else return
thanks in advance
© Stack Overflow or respective owner