Validated and KeyPress events
I notice ASP is missing the Validated and Keypress events. I used the keypress event in my windows app to only allow numbers to be entered in some of my text boxes. I used the Validated event to check for specific formats using regular expressions. Is there an equivelent built into ASP?
Re: Validated and KeyPress events
you have to use javascript
Code:
<input type="text"
onKeyPress = "jsMethod(this);"
onBlur = "jsFormat(this);"></input>
alternatly for a server control setup the js on the server through
Code:
ctl.Attributes["onKeyPress"] = "jsMethod();";
or something like that