Use ValidateEmptyText property of the custom validators to validate even if the control to validate is empty

Hi

In Asp.Net 1.X there was a problem in using the custom validators. The custom validators never fired if the control to validate was empty. So it was not very useful in all the places. In Asp.Net 2.0 this problem has been solved.

The custom validators have a new property called ValidateEmptyText. If we set the value of this property to true then the custom validators will validate even if the control to validate was empty.

Hope this helps
Thanks
Vikram


Share this post   Email it

Feedback

Posted on 7/26/2009 9:35:05 PM

hi Thanks its useful

Please post your comments:

Name:  
Email (optional): Your email address will not be posted.
URL (optional):
Comments: HTML will be ignored, URLs will be converted to hyperlinks  
Enter the text you see in the box:
 

Copyright © 2006 - 2012 Vikram Lakhotia