Page losing formatting
<p>On my page a I have a few textboxes, AJAX tabpanel and a gridview.
On Page_Load event, textboxes are filled in; gridview is populated and so on. 
My griedview has a button:</p>

<pre><code>&lt;Columns&gt;
&lt;ItemTemplate&gt;
    &lt;asp:Button ID="btnRedirect"
         Text="Click me"
         CommandArgument='&lt;%#Eval("BkId_ZW")%&gt;'
         OnClick="DoRedirect"
         runat="server" /&gt;
&lt;/ItemTemplate&gt;
...
&lt;/Columns&gt;
</code></pre>

<p>and the code behind it looks like:</p>

<pre><code>    protected void DoRedirect(object sender, EventArgs e)
    {
        Button theButton = sender as Button;
        string url ="http://../profile/" + theButton.CommandArgument;
        Response.Write("&lt;script&gt;window.open('" + url + "');&lt;/script&gt;");           
    }
</code></pre>

<p>After button is pressed a new window is open (everything works as expected) but the main page loose values and formatting of the textboxes. 
What is going on? How to fix it?</p>
