Private: MY Note

Every thing you imagine, study it – know it – use it

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.

October 3, 2007 - Posted by dev1 | AJAX | | No Comments Yet

No comments yet.

Leave a comment