Browse by Tags

Reusing custom validator
Monday, November 12, 2007 12:54 PM
do u have custom validation code that u need to resuse, do u find yourself copying code of validation between pages well here's how to build a custom validator all you have to do besides inheriting Control is implement the IValidator Interface and here u go public class ValidatorControl: Control,IValidator {} Read More...
Validatable ASP.net WebCustomControl
Monday, November 12, 2007 12:52 PM
when u add a required field validator to your page u get to select which control to validate, so what if u created that control you want to validate... just add the Attribute [ValidationProperty("PropertyName")] to your class and specify which public property of your control to use Read More...