Open Colourbox/Jquery on Server control after postback C#
<p>Am having a problem trying to tigger linkbutton that on click needs to add value to viewstate then after post back open up colourbox. After post back the colourbox does not open unless you click linkbutton again. </p>

<pre><code>&lt;div id="modules-link"&gt;&lt;asp:LinkButton ID="BT_AddModule1" 
    CssClass="grey-bar popup" CommandArgument="1" runat="server" 
    onclick="BT_AddModule1_Click"&gt;Open box&lt;/asp:LinkButton&gt;&lt;/div&gt;

    protected void BT_AddModule1_Click(object sender, EventArgs e)
    {
        LinkButton LB = (LinkButton)sender;
        ViewState.Add("PHNU", LB.CommandArgument);  
    ScriptManager.RegisterStartupScript(this, this.GetType(), "ShowPopup", "$('.popup').colorbox({ width: '80%', inline: true, href: '#modules' });", true);        
    }
</code></pre>
