asp.net - Add external javascript to user control... but put the file reference at the bottom of the page -
i need able add external js file user control (using
this.page.clientscript.registerclientscriptinclude("suggestionsearch", "~/secure/shared/suggestionsearch.js");
syntax)
but puts javascript file on page early... there way put file @ bottom of page?
take @ clientscriptmanager.registerstartupscript
something work:
scriptmanager.registerstartupscript(this.page, typeof(page), "suggestionsearch", string.format("<script src='{0}' type='text/javascript'></script>", resolveurl("~/secure/shared/suggestionsearch.js")));
Comments
Post a Comment