How to open a page in a new window or tab from code-behind
<p>So I have a webapplication where I select a value from a dropdownlist. When this value is selected, I want to load another page in a new window.</p>

<p>I tried this:</p>

<pre><code>ScriptManager.RegisterStartupScript(Page, typeof(Page), "OpenWindow", "window.open('Default.aspx', '_blank');", true);
</code></pre>

<p>It does open the page, but not in a new window/tab. It opens it in the current opened page.</p>

<p>Alternatively I tried:</p>

<pre><code>ClientScript.RegisterStartupScript(this.GetType(), "OpenWin", "&lt;script&gt;openDashboardPage()&lt;/script&gt;");
</code></pre>

<p>and</p>

<pre><code>HttpContext.Current.Response.Write("&lt;SCRIPT LANGUAGE='JavaScript'&gt;window.open('Default.aspx', '_new');&lt;/SCRIPT&gt;");
</code></pre>

<p>They all behave in the same fashion. I just loads the page in the existing window. I tried it in both Firefox and Chrome, thinking it might be a browser thing, but they both behaved the same.</p>

<p>How do I open a new window?</p>
