2008-10-24 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web / System.Web.UI.HtmlControls / HtmlInputCheckBox.cs
index cd5abb1eee2be3b8890cf92e2508a94f1c33d4f0..2b8f7568fc1f6d27b4bdbda4452d51646d6cc6b0 100644 (file)
@@ -73,7 +73,7 @@ namespace System.Web.UI.HtmlControls
                        }
                }
                
-               private static readonly object EventServerChange = new object ();
+               static readonly object EventServerChange = new object ();
 
                [WebSysDescription("")]
                [WebCategory("Action")]
@@ -91,7 +91,7 @@ namespace System.Web.UI.HtmlControls
                protected override void RenderAttributes (HtmlTextWriter writer)
                {
                        if (Page != null)
-                               Page.ClientScript.RegisterForEventValidation (this.UniqueID);
+                               Page.ClientScript.RegisterForEventValidation (UniqueID);
                        base.RenderAttributes (writer);
                }
 #endif
@@ -149,6 +149,7 @@ namespace System.Web.UI.HtmlControls
 
                protected virtual void RaisePostDataChangedEvent ()
                {
+                       ValidateEvent (UniqueID, String.Empty);
                        RaisePostDataChangedEventInternal ();
                }
 #endif