Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > custom validator

Reply
Thread Tools

custom validator

 
 
Mike P
Guest
Posts: n/a
 
      11-05-2003
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!
 
Reply With Quote
 
 
 
 
Giorgio Parmeggiani
Guest
Posts: n/a
 
      11-05-2003
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


 
Reply With Quote
 
 
 
 
Mike P
Guest
Posts: n/a
 
      11-05-2003
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!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Struts Validator - creditCard validator smrimell@gmail.com Java 4 02-13-2007 08:32 PM
How to get custom control to work with custom validator Scott Yenor ASP .Net Web Controls 0 01-27-2004 12:37 AM
Custom Textbox and Validator Control Pham Nguyen ASP .Net 2 01-11-2004 07:30 AM
Custom Validator Issue Arvind P Rangan ASP .Net 1 11-12-2003 03:28 PM
Custom Validator Serdar Kalaycę ASP .Net 1 07-08-2003 01:36 PM



Advertisments