Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > CustomValidator doesn't validate on a textbox that is empty

Reply
Thread Tools

CustomValidator doesn't validate on a textbox that is empty

 
 
Ned
Guest
Posts: n/a
 
      02-09-2004
I am trying to use a CustomValidator on a textbox. The Validator uses
a client-side funtion but it doesn't run if the textbox is empty. If
there is data in the text box it runs fine. Any suggestions
appreciated. Thanks!
 
Reply With Quote
 
 
 
 
Curt_C [MVP]
Guest
Posts: n/a
 
      02-09-2004
Required Field Validator?

Also, are you saying it doesn't run or it passes validation?

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com


"Ned" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) m...
> I am trying to use a CustomValidator on a textbox. The Validator uses
> a client-side funtion but it doesn't run if the textbox is empty. If
> there is data in the text box it runs fine. Any suggestions
> appreciated. Thanks!



 
Reply With Quote
 
 
 
 
Jerry
Guest
Posts: n/a
 
      02-09-2004
If you wish to validate the fact that it is empty you need to use a required
field validator.

Regards

"Ned" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) m...
> I am trying to use a CustomValidator on a textbox. The Validator uses
> a client-side funtion but it doesn't run if the textbox is empty. If
> there is data in the text box it runs fine. Any suggestions
> appreciated. Thanks!



 
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
CustomValidator won't validate cashdeskmac ASP .Net 0 11-20-2007 10:46 PM
customvalidator do not work with empty fields Eric Layman ASP .Net 4 03-28-2007 01:58 AM
validate if dropdownlist is empty js ASP .Net 2 04-23-2006 03:16 PM
how to validate a non empty element with only attributes edkawas XML 0 06-24-2005 09:36 PM
CustomValidator control to validate a date in format dd/mm/yyyy EmJayEm ASP .Net Web Controls 2 12-31-2004 08:41 PM



Advertisments