Getting the response of a webpage that contains javascript
<p>In my C# app i got the following code:</p>

<pre><code>private void button1_Click(object sender, EventArgs e)
{
    string uri = urlTextBox.Text;

    Uri myURL;

    if (!Uri.TryCreate(uri, UriKind.Absolute, out myURL))
        return;

    WebRequest request = WebRequest.Create(myURL);
    request.Method = "GET";
    using (WebResponse response = request.GetResponse())
    {
        using (Stream stream = response.GetResponseStream())
        {
            using(StreamReader sr = new StreamReader(stream))
            {
                responseTextBox.Text = sr.ReadToEnd();
            }
        }
    }
</code></pre>

<p>}</p>

<p>But when I click the button it returns me the following text:</p>

<pre><code>&lt;html&gt;

&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;title&gt;Login Timed Out&lt;/title&gt;
&lt;link rel=stylesheet type="text/css" href="../../shared/css/ilearn_base.css"&gt;
&lt;script&gt;
function redirectToTop(reloginLoc) {
   if (opener != null &amp;&amp; opener != self) {
      opener.top.location = reloginLoc;
      window.close();
   }

   else if (top != self) {
      top.location = reloginLoc;
   }

   else {
      location = reloginLoc;
   }
}
&lt;/script&gt;
&lt;noscript&gt;
Your browser does not support JavaScript. Please turn on JavaScript to use the features of this web page.
&lt;/noscript&gt;

&lt;/head&gt;
&lt;body onLoad="redirectToTop('../../learner/jsp/relogin_site.jsp')"&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>What I can't understand is why it says: "<code>Your browser does not support JavaScript. Please turn on JavaScript to use the features of this web page.</code>", because I activated JavaScript in both my current browser and in IE.</p>

<p>In my Internet Browsers the page looks different, having the scripts executed, and I want to find out how can I activate javascript in C# browser to get the full response.</p>
