Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.NET input validation being fired by wrong control

Thread Tools

ASP.NET input validation being fired by wrong control

Posts: n/a
I am using 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?

Reply With Quote
Posts: n/a
Figured it out - needed to add the line CausesValidation="false" to
the other controls to prevent them from firing the validation.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedded <divs> with events: How to prevent the parent div's eventfrom being fired when the embedded div's event is fired? Num GG Javascript 2 11-17-2008 08:56 PM
SortCommend event is being fired twice Anup ASP .Net 2 08-08-2006 12:42 PM
Events being fired multiple number of times... =?Utf-8?B?VG9ueSBKb2hu?= ASP .Net 2 12-11-2004 02:25 AM
HttpHandler not being fired for HTTPS requests Steven ASP .Net 0 07-23-2004 04:45 PM
Page_Load being fired twice =?Utf-8?B?Tmltcm9kIENvaGVu?= ASP .Net 7 06-09-2004 01:47 PM