Pop-Up with ASP.Net Button Click that is not blocked with popup blocker
<p>I currently have an ASP.Net button click event that does a few things (including change session variables) prior to registering a new startup script  As is, when a user clicks the button, their pop-up blocker blocks the popup even though it was technically triggered by a user event; I imagine the browser doesn't see it that way.</p>

<pre><code>protected void ContinueButton_Click(object sender, EventArgs e)
{
    if (agreement.Checked)
    {
        string eid = Request.QueryString["eid"];
        Session["TestAgreement"] = "Agreed";
        openNewWindow("Exams/exam.aspx?id=" + courseCode, "height=760, width=1000, status=yes, toolbar=no, menubar=no, location=no, scrollbars=1");
    }          
}
private void openNewWindow(string url, string parameters)
{
    ClientScript.RegisterStartupScript(this.GetType(), "Exam", String.Format("&lt;script&gt;window.open('" + url + "', '', '" + parameters + "');&lt;/script&gt;"));
}
</code></pre>
