With the help of this property, you can specify the focus whether that is automatically set to the control specified by the ControlToValidate property or not or else by using the focus feature, the validators can be configured to set focus to their associated control to be validated when a validation error occurs. It will set when the validation control unable to validate. It allows us to update the appropriate control present in the control property. It will always move focus back to the field with the error after you tab out and an error occurs.
Asked In: Many Interviews |