How to redirect to a new window without reloading the parent page in ASP.NET?
<p>I have found this class here:</p>

<p><a href="http://weblogs.asp.net/infinitiesloop/archive/2007/09/25/response-redirect-into-a-new-window-with-extension-methods.aspx" rel="nofollow">http://weblogs.asp.net/infinitiesloop/archive/2007/09/25/response-redirect-into-a-new-window-with-extension-methods.aspx</a></p>

<pre><code>public static class ResponseHelper {

    public static void Redirect(string url, string target, string windowFeatures) {

        HttpContext context = HttpContext.Current;



        if ((String.IsNullOrEmpty(target) ||

            target.Equals("_self", StringComparison.OrdinalIgnoreCase)) &amp;&amp;

            String.IsNullOrEmpty(windowFeatures)) {



            context.Response.Redirect(url);

        }

        else {

            Page page = (Page)context.Handler;

            if (page == null) {

                throw new InvalidOperationException(

                    "Cannot redirect to new window outside Page context.");

            }

            url = page.ResolveClientUrl(url);



            string script;

            if (!String.IsNullOrEmpty(windowFeatures)) {

                script = @"window.open(""{0}"", ""{1}"", ""{2}"");";

            }

            else {

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

            }



            script = String.Format(script, url, target, windowFeatures);

            ScriptManager.RegisterStartupScript(page,

                typeof(Page),

                "Redirect",

                script,

                true);

        }

    }

}
</code></pre>

<p>it works except that it reloads the parent page which is annoying in my case.</p>

<p>How to avoid that ?</p>

<p>Thanks.</p>
