c# - LoadScriptsBeforeUI happens after RegisterStartupScript -


i load external/cdn javascript library scriptmanager (like jquery).

scriptmanager.scripts.add(new scriptreference(name, null)); 

i load them after ui loaded

scriptmanager.loadscriptsbeforeui = false; 

then inject in page javascript use them:

currentpage.clientscript.registerstartupscript(gettype(), "scriptname", script, true); 

the problem script loaded registerstartupscript injected in page before scriptmanager.scripts when scriptmanager.loadscriptsbeforeui = false.

do know way load registerstartupscript after scriptmanager.scripts?

i wondering if there built-in solution in scriptmanager class.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -