asp.net - Asp .NET ContentPlaceHolder reordering script tags -


i have layout contentplaceholder in head of masterpage.master, , in individual pages have content places link , script tags. when reorders scripts, , scripts run out of order causing errors.

masterpage.master

<!doctype html> <html> <head>     <script defer src="jquery.js"></script>     <asp:contentplaceholder id="head" runat="server"></asp:contentplaceholder> </head> <body> </body> </html> 

foo.aspx

<%@ page title="foobar"          language="c#"          masterpagefile="~/masterpage.master"          maintainscrollpositiononpostback="true"          autoeventwireup="true" %>  <asp:content id="content1" contentplaceholderid="head" runat="server">     <script defer src="foobar.js"></script> </asp:content> 

expected

<head>     <script defer="jquery.js"></script>     <script defer="foobar.js"></script> </head> 

actual

<head>     <script defer="foobar.js"></script>     <script defer="jquery.js"></script> </head> 


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -