>Hi all,
>
>I have a webform with fields requiring validations. When the user clicks on the submit button, if validation fails page doesn't do anything. Is there a way to move the focus on to the text box on which the validation failed?
Are you using the various Validator-related controls (RequiredFieldValidator, CustomValidator etc.) and the related ValidationSummary? These can pop up messages next to problem fields and/or give you a single control listing all problems encountered with the form validation. Especially useful for cases where more than 1 field fails validation.
If you just want to set focus check out
How to set Tab Order on WebForms Thread #
1020349 Message #
1020611
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up