If the user chooses to use an alternative address we need to validate that the required fields for the new address have been completed; if they decide to use their existing address then we need to validate that instead.
My custom validator function is executing onclick (or onclientclick) of my radiobuttonlist, instead of when I click on my submit button.
NET there’s the need to switch between Validation Groups.
A good example is a shopping cart where the user can choose to have products delivered to the account address or enter an alternative address, all within one page submission.
The validation control classes are inherited from the Base Validator class hence they inherit its properties and methods.
Therefore, it would help to take a look at the properties and the methods of this base class, which are common for all the validation controls: The Regular Expression Validator allows validating the input text by matching against a pattern of a regular expression.
Regular Expression Validation It is very simple to add a regular expression validator to j Query validation. It will also validate the email id without using a regular expression.
When we run the preceding code it will show: Here the error message is misplaced since we can see it clearly.
For placing the error message after the radio button list we need to use the following code after the message body.
Autopostback is set to false, so I'm extremely confused.