I usually stay away from this one because I can get most to work with a regular expression validator.
Anyway, what I have is a ListBox (<select>), and I want to ensure an item is selected prior to the form being submitted. It appears through my testing that the client side script doesn't fire when I submit the form unless I first select an item in the list box (which would take the point out of ensuring an item is selected).
Furthermore, as a back-up I set the Server_OnValidate method to do a similiar check...it never fires, even when I expressly call Page.Validate(), or for that matter event the Validate method of the custom validator.
I haven't ever seen these issues with any of the other validators, since I usually don't mess with this particular validator I figure I must be missing something. Any thoughts would be appreciated.
Anyway, what I have is a ListBox (<select>), and I want to ensure an item is selected prior to the form being submitted. It appears through my testing that the client side script doesn't fire when I submit the form unless I first select an item in the list box (which would take the point out of ensuring an item is selected).
Furthermore, as a back-up I set the Server_OnValidate method to do a similiar check...it never fires, even when I expressly call Page.Validate(), or for that matter event the Validate method of the custom validator.
I haven't ever seen these issues with any of the other validators, since I usually don't mess with this particular validator I figure I must be missing something. Any thoughts would be appreciated.