Dynamically Assigning ASP.NET AJAX Script References
In most scenarios, the easiest way to add a script file to an ASP.NET page is in markup, as in the following example:
<asp:ScriptManager ID="SMgr" runat="server"> <Scripts> <asp:ScriptReference Path="./Script.js" /> </Scripts> </asp:ScriptManager>
This topic addresses a simple page developer scenario. For adding script references in custom controls, see Adding Client Behaviors to Web Server Controls by Using ASP.NET AJAX Extensions.
No comments yet.