C
Christian Cambier
Hello,
I have a textbox in which I only want to display numbers when the
focus is set on the textbox and the user presses a key on the kb.
Easy with html-control <input id="htmlTxtVal2" type="text"
onkeypress="return NoNumbers(event)" and javascript (implement the
onkeypres event handler)
But how to implement it when using the asp:TextBox control ?
Seems to me that a validation control doesn't work 'cause validation
is only performed when the user clicks the send-button, and NOT when
the user is still entering the information in the textbox.
So, how?
thank you
Chris
I have a textbox in which I only want to display numbers when the
focus is set on the textbox and the user presses a key on the kb.
Easy with html-control <input id="htmlTxtVal2" type="text"
onkeypress="return NoNumbers(event)" and javascript (implement the
onkeypres event handler)
But how to implement it when using the asp:TextBox control ?
Seems to me that a validation control doesn't work 'cause validation
is only performed when the user clicks the send-button, and NOT when
the user is still entering the information in the textbox.
So, how?
thank you
Chris