ソースを参照

2006-09-07 Lluis Sanchez Gual <[email protected]>

	* Page.cs: Use lowercase getElementById in the javascript that
	checks the browser.


svn path=/trunk/mcs/; revision=65045
Lluis Sanchez 19 年 前
コミット
29bfd8efee

+ 5 - 0
mcs/class/System.Web/System.Web.UI/ChangeLog

@@ -1,3 +1,8 @@
+2006-09-07 Lluis Sanchez Gual  <[email protected]>
+
+	* Page.cs: Use lowercase getElementById in the javascript that
+	checks the browser.
+
 2006-08-22  Vladimir Krasnov  <[email protected]>
 
 	* KeyedListEnumerator.cs: fixed Current property to return real object

+ 1 - 1
mcs/class/System.Web/System.Web.UI/Page.cs

@@ -885,7 +885,7 @@ public class Page : TemplateControl, IHttpHandler
 		writer.WriteLine ("<script language=\"javascript\">");
 		writer.WriteLine ("<!--");
 
-		writer.WriteLine ("\tvar theForm;\n\tif (document.getElementById) {{ var theForm = document.GetElementById ('{0}'); }}", formUniqueID);
+		writer.WriteLine ("\tvar theForm;\n\tif (document.getElementById) {{ theForm = document.getElementById ('{0}'); }}", formUniqueID);
 		writer.WriteLine ("\telse {{ theForm = document.{0}; }}", formUniqueID);
 		writer.WriteLine ("\tfunction __doPostBack(eventTarget, eventArgument) {");
 		writer.WriteLine ("\t\ttheForm.{0}.value = eventTarget;", postEventSourceID);