Explorar o código

2005-09-07 Gonzalo Paniagua Javier <[email protected]>

	* HtmlInputControl.cs: use the Name property instead of the ClientID.
	The 'name' attribute rendered contains colons if inside a
	NamingContainer.


svn path=/trunk/mcs/; revision=49656
Gonzalo Paniagua Javier %!s(int64=20) %!d(string=hai) anos
pai
achega
379593e708

+ 6 - 0
mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog

@@ -1,3 +1,9 @@
+2005-09-07 Gonzalo Paniagua Javier <[email protected]>
+
+	* HtmlInputControl.cs: use the Name property instead of the ClientID.
+	The 'name' attribute rendered contains colons if inside a
+	NamingContainer.
+
 2005-09-07  Chris Toshok  <[email protected]>
 
 	* HtmlInputCheckBox.cs (Checked): uncomment the

+ 2 - 1
mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputControl.cs

@@ -100,7 +100,7 @@ namespace System.Web.UI.HtmlControls {
 		protected override void RenderAttributes (HtmlTextWriter writer)
 		{
 			if (Attributes ["name"] == null) {
-				writer.WriteAttribute ("name", ClientID);
+				writer.WriteAttribute ("name", Name);
 			}
 #if NET_2_0
 			Attributes.Remove ("type");
@@ -116,3 +116,4 @@ namespace System.Web.UI.HtmlControls {
 		}
 	}
 }
+