I've been banging my head for a while now and before I go mad, I was wondering if anyone can help me out.
I need to run some client-side javascript after a page has loaded and after specific postbacks are completed.
To undertake this, I am using Page.ClientScript.RegisterStartupScript(...) which I believe is the correct way.
The problem is, it needs to run functions held in external scripts referenced by the page (including the ajax framework - I'm using scriptpath to serve this from a seperate domain).
With the loadscriptsbeforeui attribute of the scriptmanager set to false (best practice to load scripts at the end of the document), the external scripts appear *AFTER* the script added by RegisterStartupScript meaning required functions are not yet available.
Is there a way to get RegisterStartupScript scripts to be the last script in the page?
Kind regards,
Rob