參考1:ASP.Net Master Page and File path issues
參考2:How do you include JavaScript in MasterPage?
---
方法有2 :
1.
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Path="~/jquery.js" />
</Scripts>
</asp:ScriptManager>
2.
<body>
<!-- Scripts at bottom of page for faster loading. -->
<script src='<%= ResolveUrl("~/js/jquery-1.7.1.min.js") %>'></script>
<script src='<%= ResolveUrl("~/js/script.js") %>'></script>
</body>
---
Bootstrap 3.0.0 with ASP.NET Web Forms – Step by Step – Without NuGet Package
沒有留言:
張貼留言