Validating date in asp net
If, on the other hand, you set the Display property to the value Dynamic, the error message is rendered like this: That way, if other content is displayed next to the validation control, the content is not pushed to the right. Note The RequiredFieldValidator will not perform client-side validation until after you attempt to submit a form at least once or you enter and remove data in a form field. If you provide a value for the first text field and not the second text field and submit the form, the form focus automatically shifts to the second form field. This is great from a user experience perspective because you get immediate feedback whenever you enter an invalid value into a form field. The only purpose of the string is to associate different controls in a form together into different groups.