Results 1 to 2 of 2

Thread: Validated and KeyPress events

  1. #1

    Thread Starter
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    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?

  2. #2
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    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
    Magiaus

    If I helped give me some points.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width