I found a page with the proper start code and built out from there.
<%@ page language="c#" %>
<%@ Import Namespace="System.Net" %>
string URL = "http://google.com";
WebClient myClient = new WebClient();
string webPageString = myClient.DownloadString(URL);
Now my problem is that I'm using this on an Internet facing server and it is grabbing content from systems behind the firewall. Each system takes just a few seconds to respond, but WebClient seems to be allowing this to happen only sequentially.
I am using iframes. THe server loads up the master page and then for each internal machine I query it loads up a different URL in an iframe.
When I do this using Apache/PHP it loads very fast becasue multiple iframes load at the same time.
When I do this on IIS 7.5 (Server 2008 R2 on a very capable VM) with aspx it seems to wait for one iframe to load then it goes to the next.
With 10 iframes it takes about 40 seconds while it is less than 10 for all of them in php.
Edited by ThatBob, 01 May 2014 - 11:29 PM.