RegisterStartupScript on master page not working. Alternatives?
<p>I have tried using RegisterStartupScript and ScriptManager.RegisterClientScriptBlock to no effect. both are failing to send my list of javascript arrays.</p>

<p>I am doing this on the masterpage's page load and can only assume the fact that I'm doing it on a master page is the problem.</p>

<p>I have the exact same C# code on another page (that is not being loaded at this time and holds different value names, thus will not conflict to create this current issue) and it works flawlessly.</p>

<p>Any insight would be greatly appreciated. </p>

<p>Upon further debugging the problem seems to lie in the fact that the code I send to be written in js from the C# file is being done 'after' it reads the masterpage's javascript somehow.. Though it should have to read the CS file and do it's work first, yeah? Hmph. I'm not sure.</p>

<p><strong>Edit: FIX'D</strong></p>

<p>Oh! I found a cheap way around. What I was doing was:</p>

<ul>
<li>A) creating arrays in C# to be sent
to javascript (so creating javascript
arrays that are already filled) </li>
<li>B)
trying to call registerstartupscript
/RegisterClientScriptBlock<br>
<ul>
<li>C) Getting an error because
window.onload reads the builder that
required those variables before
they're created (god knows why)</li>
</ul></li>
</ul>

<p><strong>Solution</strong>: instead of using window.onload to run the generator, I put it in the code block I was sending to javascript after I declare the variables. A devilish way that doesn't actually solve the problem, just works around it.</p>
