Is there a way to register a script reference just before end of body tag? I’ve just tried:
page.ClientScript.RegisterClientScriptInclude("jquery.widgets.js", page.ResolveClientUrl("~/js/plugins/jquery.widgets.js"));
but it registers the file just after ViewState, at the beginning of form element.
Use a script manager to register scripts dynamically at
Page_Loaduse theLoadScriptsBeforeUI="False"attribute to ensure the scripts are registered at the end of the document.And then in your code