.NET Framework 4.6 and 4.5
public event EventHandler<ScriptReferenceEventArgs> ResolveScriptReference
This event is raised one time for each member of the Scripts collection during the page's PreRender event. Use this event to perform any updates before the script is rendered to the page.
Supported in: 4.6, 4.5, 4, 3.5