RegisterStartupScript and order of execution
<p>I am using <code>ScriptManager.RegisterStartupScript</code> to register calls to a large number of JS functions.</p>

<pre><code>ScriptManager.RegisterStartupScript(this, this.GetType(), "Script1", "SomeScript1", true);
ScriptManager.RegisterStartupScript(this, this.GetType(), "Script2", "SomeScript1", true);
ScriptManager.RegisterStartupScript(this, this.GetType(), "EndScript", "EndScript", true);
</code></pre>

<p>When the HTML is rendered, it's adding them in order.</p>

<pre><code>&lt;script type="text/javascript"&gt;
//&lt;![CDATA[
other functions calls..
SomeScript1();SomeScript2();EndScript();
//]]&gt;
&lt;/script&gt;
</code></pre>

<p>However, when I step through in debug mode, the execution of scripts are not in order (Ex: <code>EndScript</code> executes first before <code>SomeScript1</code> or <code>SomeScript2</code>)</p>

<p>Doesn't <code>ScriptManager.RegisterStartupScript</code> gaurantee execution in the order it was added? If not, what are the alternatives (I want to always execute <code>EndScript</code> in the end)</p>
