The Script Property
Listing 2. Load a custom JavaScript file using the ScriptManager control's Scripts property. <asp:ScriptManager ID="ScriptManager1" runat="server"> <Scripts> <asp:ScriptReference Path="~/Scripts/MyScript.js" /> </Scripts> </asp:ScriptManager> |