Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > CustomValidator firing twice and not displaying error message

Reply
Thread Tools

CustomValidator firing twice and not displaying error message

 
 
Talisker
Guest
Posts: n/a
 
      06-09-2006
I have a custom validator that checks to see if a checkbox is checked,
if it is then another field is required, so if it's blank then I want
to display an error. When I submit the form, for some reason it is
running the validator (server side) twice. It properly changes the
IsValid to False so the form doesn't get submitted, but the error
message doesn't display on the page.

Any idea why it would run twice (with nothing else running in between)
or not display the error?

Another thing to note, this is within the Edit template of a FormView
control in .net 2.0.

Any pointers would be welcome.

 
Reply With Quote
 
 
 
Reply

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
Modifying a customValidator error message from the client function? Damon ASP .Net 2 06-23-2009 02:45 PM
twice(twice(x)) Kiuhnm C++ 2 04-01-2006 04:41 PM
CustomValidator doesn't give error message COHENMARVIN ASP .Net 1 08-05-2005 03:25 PM
onclick firing twice for CheckBox and RadioButton... alien2_51 ASP .Net 2 11-13-2003 08:03 AM
OnInit firing twice??? Andy ASP .Net 0 10-21-2003 08:28 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57