Wednesday 7 April 2010

ASP.Net CustomValidator and CompareValidator - Validating Empty Controls


A lot of people have had trouble with validating empty controls when using the Custom Validator and Compare Validators within the ASP.NET framework.

As of .NET 2.0, an Attribute has been added to each control called "ValidateEmptyText".

Add this to each control consumed and away you go!

No comments: