2009-06-01 Marek Habersack <mhabersack@novell.com>
authorMarek Habersack <grendel@twistedcode.net>
Mon, 1 Jun 2009 18:22:04 +0000 (18:22 -0000)
committerMarek Habersack <grendel@twistedcode.net>
Mon, 1 Jun 2009 18:22:04 +0000 (18:22 -0000)
* ClientScriptManager.cs: WriteHiddenFields doesn't add the id
attribute to generated input element in the 1.1 profile. Fixes bug
#508167. Patch from Hubert FONGARNAND
<informatique.internet@fiducial.fr>, thanks!

svn path=/trunk/mcs/; revision=135134

mcs/class/System.Web/System.Web.UI/ChangeLog
mcs/class/System.Web/System.Web.UI/ClientScriptManager.cs

index 80251d4edebd5f9ada75cfc4230de74149443fd1..7a1db1cbcb7770567d79d5717adbd108fd68597a 100644 (file)
@@ -1,3 +1,10 @@
+2009-06-01  Marek Habersack  <mhabersack@novell.com>
+
+       * ClientScriptManager.cs: WriteHiddenFields doesn't add the id
+       attribute to generated input element in the 1.1 profile. Fixes bug
+       #508167. Patch from Hubert FONGARNAND
+       <informatique.internet@fiducial.fr>, thanks!
+
 2009-05-29  Marek Habersack  <mhabersack@novell.com>
 
        * StateBag.cs: made SetDirty (bool) available on 1.1 as
index 9156712c95edd39aabc64908a0522ecd2f9312e7..1f24124518ff5dacbcf95480c54b68c58a7cc2ac 100644 (file)
@@ -658,7 +658,11 @@ namespace System.Web.UI
 #endif
                        foreach (string key in hiddenFields.Keys) {
                                string value = hiddenFields [key] as string;
+#if NET_2_0
                                writer.WriteLine ("<input type=\"hidden\" name=\"{0}\" id=\"{0}\" value=\"{1}\" />", key, HttpUtility.HtmlAttributeEncode (value));
+#else
+                               writer.WriteLine ("<input type=\"hidden\" name=\"{0}\" value=\"{1}\" />", key, HttpUtility.HtmlAttributeEncode (value));
+#endif
                        }
 #if NET_2_0
                        writer.RenderEndTag (); // DIV