Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 18, 2011 06:50 PM by eracekat69
Jan 18, 2011 10:53 AM|LINK
We are using regular expression and required field validators. They work fine, especially in out of the box environments like the log in control.
When used on other controls, e.g. a textbox, they also work, but we note that the whole site is in effect shut down until the expression is valid. I.e. the user cannot click cancel, or a link. The site only starts working again after the expression has been
How can this be fixed?
The validators should only apply to the control to validate and to the control that would cause the value of that control to be posted back to the server (e.g. a button), not the whole site.
Jan 18, 2011 11:29 AM|LINK
Set the CauseValidation="false" to your other buttons except the login button.
<asp:button id="btnCancel" runat="server" Text="Cacnel" CausesValidation="False" />
Jan 18, 2011 06:50 PM|LINK
Definitely making progress with this. The controls equipped with causes validation = false do now, when clicked, perform their work.
It is noticable that the validator briefly flickers up when a button is pressed (cause validation set to false). For about a half a second or so, before the button does it's work. A bit odd.
Can this be prevented?