oops
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / Button.cs
index e902db7c67a5742850533dea0887839b47fb75ff..b1e86f2dc665e6be7894f82dfadac220653f552e 100644 (file)
@@ -171,12 +171,7 @@ namespace System.Web.UI.WebControls {
                                Page.VerifyRenderingInServerForm (this);
 
                        writer.AddAttribute (HtmlTextWriterAttribute.Type, "submit");
-#if NET_2_0
-                       if (ID != null)
-                               writer.AddAttribute (HtmlTextWriterAttribute.Name, UniqueID);
-#else
                        writer.AddAttribute (HtmlTextWriterAttribute.Name, UniqueID);
-#endif
                        writer.AddAttribute (HtmlTextWriterAttribute.Value, Text);
 
                        if (CausesValidation && Page != null && Page.AreValidatorsUplevel ()) {