New test.
[mono.git] / mcs / class / System.Web / System.Web.UI.HtmlControls / HtmlInputImage.cs
index 864c358250ec8b06598d1078d70ded7d8374bae6..9e441310ab7ca4c704d2ea32d1625cbde2c99a56 100644 (file)
@@ -246,6 +246,9 @@ namespace System.Web.UI.HtmlControls {
                protected override void RenderAttributes (HtmlTextWriter writer)
                {
 #if NET_2_0
+                       if (Page != null)
+                               Page.ClientScript.RegisterForEventValidation (this.UniqueID);
+                       
                        if (CausesValidation && Page != null && Page.AreValidatorsUplevel (ValidationGroup)) {
                                ClientScriptManager csm = Page.ClientScript;
                                Attributes ["onclick"] += csm.GetClientValidationEvent (ValidationGroup);