Просмотр исходного кода

2006-07-14 Gonzalo Paniagua Javier <[email protected]>

	* Button.cs: always render the 'name' attribute. Fixes bug #78746.


svn path=/trunk/mcs/; revision=62617
Gonzalo Paniagua Javier 19 лет назад
Родитель
Сommit
443d57b263

+ 0 - 5
mcs/class/System.Web/System.Web.UI.WebControls/Button.cs

@@ -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 ()) {

+ 4 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,7 @@
+2006-07-14 Gonzalo Paniagua Javier <[email protected]>
+
+	* Button.cs: always render the 'name' attribute. Fixes bug #78746.
+
 2006-07-13 Gonzalo Paniagua Javier <[email protected]>
 
 	* DataList.cs: correctly initialize editable items when there's an