Originally Posted by robertx
I have 2 text boxes (username and password) on a login form each associated with a required field validator. I also have a custom validator control which I call the ServerValidate event to authenticate.
My problem is that the form does not post back to the server until both of the required field validators are valid. Even if I put JavaScript into my HTML to set the focus to the username or password field, it does not execute unless the form is posted back.
eg.If the user enters a username but no password, the focus is not set to the password text box as the password required field validator blocks post back.
How can I force the form to post back each time a validator executes? I have set runat="Server".