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
made valid.
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.
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.
eracekat69
Member
84 Points
268 Posts
regular expression and required field validators shutting down whole site
Jan 18, 2011 10:53 AM|LINK
Hello.
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 made valid.
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.
Thank you.
Best regards,
D
prabinyovan
Contributor
2401 Points
531 Posts
Re: regular expression and required field validators shutting down whole site
Jan 18, 2011 11:29 AM|LINK
Hello,
Set the CauseValidation="false" to your other buttons except the login button.
Nothing is really over,until the moment u stop trying for it....
eracekat69
Member
84 Points
268 Posts
Re: regular expression and required field validators shutting down whole site
Jan 18, 2011 06:50 PM|LINK
Thank you.
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?
Cheers,
D