client side validation with asp:TextBox ???

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top