Validating radiobuttonlist

Element By Id(' Radio Button1').checked) && (! Have a variable that holds the count of checked buttons.

Checked = False End Sub End Class ------------------------------------------------------------------------------------------------------------------ Enjoy Gagandeep You can write a function in the code behind to be an event handler for all of the radio buttons checked events.

If you have suggestions for other approaches, or additional questions related to this example, be sure to email me. For more information, you'll want to keep a good Java Script reference manual handy.

By default the caption for that list is the first item.

For example if you’re asking a user to select a country the first option is “Select a country” and the name of the countries follow so we need to check if the first option is selected and then display a message to select an option.

Of course we can always use custom Java Script to perform the validation but we need a more mature solution.

In order to create a custom validator our class "Radio Validator" will derive from Base Validator.

810

Leave a Reply