Open website with Basic authentication by asp.net
<p>I want to open a website on a button click of asp.net web page. The website  have basic authentication to open. I am using following code but its not the desired code to open website.</p>

<pre><code>    CredentialCache credentialCache = new CredentialCache();
    NetworkCredential credentials = new NetworkCredential("uid", "pwd", "domain");
    credentialCache.Add(new Uri("https://www.abc.com"), "Basic", credentials);
    var request = (HttpWebRequest)WebRequest.Create("https://www.abc.com");
    request.Credentials = credentialCache;

    HttpWebResponse res1 = (HttpWebResponse)request.GetResponse();
    using (HttpWebResponse res = (HttpWebResponse)request.GetResponse())
    {
        string ss = res.ResponseUri.ToString();
        StreamReader sr = new StreamReader(res.GetResponseStream());
        Response.Write (sr.ReadToEnd());

    }
</code></pre>

<p><code>Response.Write</code> write the html of the requested page on my page but I need to redirect to that page to access the website.  </p>
