title: Get Rendered HTML from a page in ASP.NET
body: <p>Hello I have a html page (twitter.html) with the following script</p>
  
  <pre><code>&lt;script type="text/javascript" charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript"&gt;
              function getParameterByName(name)
              {
                name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
                var regexS = "[\\?&amp;]" + name + "=([^&amp;#]*)";
                var regex = new RegExp(regexS);
                var results = regex.exec(window.location.search);
                if(results == null)
                  return "";
                else
                  return decodeURIComponent(results[1].replace(/\+/g, " "));
              }
              var TwitterCount = getParameterByName('TwitterCount');
              var TwitterHandleName = getParameterByName('TwitterHandleName');
              new TWTR.Widget({
                  version: 2,
                  type: 'profile',
                  rpp: TwitterCount,
                  interval: 30000,
                  width: 272,
                  height: 'auto',
                  theme: {
                      shell: {
                          background: '#ffffff',
                          color: '#000000'
                      },
                      tweets: {
                          background: '#ffffff',
                          color: '#005A8C',
                          links: '#000000'
                      }
                  },
                  features: {
                      scrollbar: false,
                      loop: false,
                      live: false,
                      behavior: 'all'
                  }
              }).render().setUser(TwitterHandleName).start();
          &lt;/script&gt;
  </code></pre>
  
  <p>If I access the page </p>
  
  <pre><code>http://localhost/twitter.html?TwitterHandleName=billgates&amp;TwitterCount=3 
  </code></pre>
  
  <p>I am able to see the last 3 tweets. </p>
  
  <p>What I want is to do an http posting on this page from my aspx page. Below code returns only the script tags etc instead of rendered html. My question is how to get the rendered html of a page?</p>
  
  <pre><code>HttpWebRequest loHttp = (HttpWebRequest)WebRequest.Create("http://localhost/twitter.html?TwitterHandleName=billgates&amp;TwitterCount=3);
              loHttp.Timeout = 30000;    
              loHttp.UserAgent = "Twitter";
              HttpWebResponse loWebResponse = (HttpWebResponse)loHttp.GetResponse();
              //Encoding enc = Encoding.GetEncoding(1252);  // Windows default Code Page
  
              StreamReader loResponseStream = new StreamReader(loWebResponse.GetResponseStream());
  
              string htmlCode = loResponseStream.ReadToEnd();
  
              loWebResponse.Close();
              loResponseStream.Close();
  </code></pre>