Răsfoiți Sursa

move the WriteClientScriptIncludes to the top of the form, according to the MSDN

svn path=/trunk/mcs/; revision=71422
Konstantin Triger 19 ani în urmă
părinte
comite
189c3d136c

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

@@ -1,3 +1,8 @@
+2007-01-21  Konstantin Triger <[email protected]>
+
+	* Page.cs: move the WriteClientScriptIncludes to the top of the form,
+		according to the MSDN.
+
 2007-01-20  Miguel de Icaza  <[email protected]>
 
 	* XhtmlTextWriter.cs: comment out unused code. 

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

@@ -1004,6 +1004,7 @@ public partial class Page : TemplateControl, IHttpHandler
 			RenderPostBackScript (writer, formUniqueID);
 			postBackScriptRendered = true;
 		}
+		scriptManager.WriteClientScriptIncludes (writer);
 		scriptManager.WriteClientScriptBlocks (writer);
 	}
 
@@ -1029,7 +1030,6 @@ public partial class Page : TemplateControl, IHttpHandler
 		scriptManager.WriteExpandoAttributes (writer);
 #endif
 		scriptManager.WriteHiddenFields (writer);
-		scriptManager.WriteClientScriptIncludes (writer);
 		scriptManager.WriteStartupScriptBlocks (writer);
 		renderingForm = false;
 		postBackScriptRendered = false;