[Mono-bugs] [Bug 72587][Nor] New - System.Web.UI.WebControls.Button property CausesValidation does not serve it's porpuse
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 14 Feb 2005 09:09:42 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by tadas@stablebeast.com.
http://bugzilla.ximian.com/show_bug.cgi?id=72587
--- shadow/72587 2005-02-14 09:09:42.000000000 -0500
+++ shadow/72587.tmp.10105 2005-02-14 09:09:42.000000000 -0500
@@ -0,0 +1,36 @@
+Bug#: 72587
+Product: Mono: Class Libraries
+Version: 1.0
+OS: GNU/Linux [Other]
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: tadas@stablebeast.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: System.Web.UI.WebControls.Button property CausesValidation does not serve it's porpuse
+
+Description of Problem:
+By default button property 'CausesValidation' is true, therefore when a
+postback is received, Page.Validate is called. On MS .NET if page does not
+validate then button onclick event is not triggered yet Mono implementation
+doesn't check if page is valid and always triggers button onclick event.
+
+Expected behaviour:
+I suppose RaisePostBackEvent function should have this:
+if (CausesValidation)
+{
+ Page.Validate(ValidationGroup);
+ if (!Page.IsValid)
+ return;
+}
+instead of this:
+if (CausesValidation)
+ Page.Validate (ValidationGroup);
+IPostBackEventHandler.RaisePostBackEvent too..