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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -