problem using page.registerstartupscript
<p>I am using page.registerstartupscript in my code behind C#. Its like this:</p>

<p>string item1="category1";
string Script = "window.program = '" + item1 + "';";
    Page.RegisterStartupScript("PopupScript", Script);</p>

<p>item1 gets generated dynamically from some value in code behind. But its not working. Any suggestoins where I m getting wrong?</p>
