Pages

Wednesday, June 3, 2009

RequiredIfValidator - Extending from the BaseValidator class



When writing ASP.NET pages that need to be validated before submission, I find myself coming across controls that only need to be validated if another control contains a particular value. A classic example of this is an "If other, please specify" field. Typically, you'll have a combobox that contains a list of choices, and at the end of the list is an "Other" item. If the user chooses "Other", you'd like them to specify exactly what "Other" means.

Click here for details .......

No comments:

Post a Comment