ASP.NET input validation being fired by wrong control
I am using asp.net input validation on a web form to check user input.
The web form is on a web user control which is then dragged on to a
The .aspx page also contains other web user controls in the way of
The problem is that although the validation fires correctly when a user
incorrectly completes the form it also fires when the user clicks on a
LinkButton on that page!
I'm sure this should be doable - otherwise you would not be able to
have mulitiple web user controls that did postbacks on the same page
which would be nonsensical!
Hopefully I am missing something obvious ;-)
Re: ASP.NET input validation being fired by wrong control
Figured it out - needed to add the line CausesValidation="false" to
the other controls to prevent them from firing the validation.
|All times are GMT. The time now is 02:41 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.