Is there a way to modify a startup script previously registered with RegisterStartupScript?
<p>I have a control that must emit a javascript array of data, which is accumulated throughout the page lifecycle.</p>

<p>The control does not know when the data is finished being accumulated, so there is no single point where it knows when to call <code>RegisterStartupScript</code>.</p>

<p>How do I accomplish this then? My original plan was to call <code>RegisterStartupScript</code> each time data is added, but with the same <code>key</code>, only the first call will render anything.</p>

<p>So, perhaps a better question title is something like "How do I know when to call RegisterStartupScript when the script can change throughout the page lifecycle?"</p>
