custom validator

Discussion in 'ASP .Net' started by Mike P, Nov 5, 2003.

  1. Mike P

    Mike P Guest

    I have a Custom validator that has ControlToValidate set to a textbox
    that also has a Required and RegularExpression validator.

    When I run the webpage on my machine the custom validator
    OnServerValidate procedure is only called if both the Required and
    RegularExpression validators are successfully met.

    However, when I upload the page to my live website, if I enter an
    invalid value in the textbox (i.e. one that doesn't meet the
    RegularExpression validator, the Custom validator procedure gets called
    regardless.


    I'm really seriously in need of help with this as I can't figure out why
    this is happening! Can anybody help?


    Thanks,

    Mike



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Mike P, Nov 5, 2003
    #1
    1. Advertising

  2. Hi

    > When I run the webpage on my machine the custom validator
    > OnServerValidate procedure is only called if both the Required and
    > RegularExpression validators are successfully met.
    >
    > However, when I upload the page to my live website, if I enter an
    > invalid value in the textbox (i.e. one that doesn't meet the
    > RegularExpression validator, the Custom validator procedure gets called
    > regardless.


    I think that your website dont have "aspnet_client" directory installed.

    Ciao
    Giorgio
    Giorgio Parmeggiani, Nov 5, 2003
    #2
    1. Advertising

  3. Mike P

    Mike P Guest

    Cheers!

    I've just worked that out, I was missing a .js file from aspnet_client
    folder.


    Thanks,

    Mike



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Mike P, Nov 5, 2003
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Serdar Kalaycý

    Custom Validator

    Serdar Kalaycý, Jul 7, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    525
    Serdar Kalaycý
    Jul 8, 2003
  2. Arvind P Rangan

    Custom Validator Issue

    Arvind P Rangan, Nov 12, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    344
  3. Pham Nguyen

    Custom Textbox and Validator Control

    Pham Nguyen, Jan 10, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    10,648
    Pham Nguyen
    Jan 11, 2004
  4. Replies:
    4
    Views:
    888
    Richter~9.6
    Feb 13, 2007
  5. Scott Yenor

    How to get custom control to work with custom validator

    Scott Yenor, Jan 27, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    201
    Scott Yenor
    Jan 27, 2004
Loading...

Share This Page