469,602 Members | 1,984 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,602 developers. It's quick & easy.

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
..aspx page.
The .aspx page also contains other web user controls in the way of
various LinkButtons.

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 ;-)
Any ideas?

Aug 23 '06 #1
1 978
Figured it out - needed to add the line CausesValidation="false" to
the other controls to prevent them from firing the validation.

Aug 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Robert | last post: by
67 posts views Thread by Scott Meyers | last post: by
6 posts views Thread by Nedu N | last post: by
1 post views Thread by Frankie | last post: by
2 posts views Thread by Pawel Pabich | last post: by
1 post views Thread by Fendi Baba | last post: by
5 posts views Thread by Smokey Grindel | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.