Pat James.com

Image
RSS

Navigation





Quick Search
»
Advanced Search »

Page History: CustomValidator and Radiobuttonlist

Compare Page Revisions



« Older Revision - Back to Page History - Current Revision


Page Revision: 2008/11/20 18:27


I had a lot of trouble getting my CustomValidator events to fire on a radiobuttonlist until I figured out that they needed to have ValidateEmptyText="true" in order to be invoked when nothing was selected.

Here's my complete CustomValidator:


Other things to check if it isn't firing:
  • Does the ValidationGroup value match in all 3 places: the submit button, the validator control, and the control to validate?
  • Does the submit button have CausesValidation=true

This site built on ScrewTurn Wiki version 3.0.2.509...a cool open source .NET wiki

Don't forget to tell all your pregnant friends about DoulaMatch and the BirthWatch Facebook app