This validation descriptor is valid only for drop down lists.
The drop down select list boxes usually will have one item saying ‘Select One’ (and that item will be selected by default).
The idea is to create a set of “validation descriptors” associated with each element in a form.
The “validation descriptor” is nothing but a string specifying the type of validation to be performed.
In other words, in order to validate a field, you just associate a set of validation descriptors for each input field in the form. For such cases, a function is included which clears all validations in the validator object. Note that this validation if for fields like Textbox and multi-line text box.
For ‘selections’ like drop down and radio group, use an appropriate validation like ‘dontselect’ or ‘selone_radio’.
If you imagine form as a dialog between your website and your user, the messages play an important role.
This includes a large bunch of sample code and a complete reference guide to all the built-in validation rules in the library.You can also remove your custom validation rule, simplifying your code. Now you can ask questions directly to me on my new site ASPForums. Dropdown list will always have one item always selected.Have an option with label like ‘Select …’ and the option value empty. Then you can apply the ‘required’ validation to the Dropdown list.
Each field in the form can have zero one or more validations. More info & downloads where Do My Validation One() and Do My Validation Two() are custom functions for validation.