Update Panel + window.open + https
<p>I'am developing with c# and asp.net.</p>

<p>I have some pages with update panels. In this update panels there is a button that redirects to a new window. This is done by calling the window.open with the scriptmanager in code behind. Everything works fine until I don't use https. If I use tunnelling with a router to have a secure line till the router and then use a proxy to access my webpages, the window.open called from the buttons that are in an update panel open a new register card, but there I get the error : page not found. In the url I can see that the router did not put the proxy+IP before the path. That does not happen if I remove the update panel.With Firebug I could see that with the update panel I get a POST and in the resonse the contentType is text/plain. Without the update panel there is a GET and the response contentType is text/html. So what can I do to run this without removing the update panels?</p>

<p>This works fine until I don't use https over my proxy:</p>

<pre><code>protected void btnPrint_Click(object sender, EventArgs e)
{
     url = "~/Gui/Report/ReportViewer.aspx?ReportName=CustomerReport";
     Page page = (Page)HttpContext.Current.Handler;

     if (page == null) {
         Redirect(url);
     }

     url = page.ResolveUrl(url);

     string script = @"window.open(""{0}"");";

     script = String.Format(script, url);
     ScriptManager.RegisterStartupScript(page,
         typeof(Page),
         "Redirect",
         script,
         true);
}

&lt;asp:UpdatePanel ID="UpdatePanel" runat="server"&gt;
    &lt;ContentTemplate&gt;
         &lt;dx:ASPxButton runat="server" ID="btnPrint"
               Text="print" OnClick="btnPrint_Click"&gt;
         &lt;/dx:ASPxButton&gt;
    &lt;/ContentTemplate&gt;
&lt;/asp:UpdatePanel&gt;
</code></pre>
