Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DateTime     now               = DateTime.Now;
            WebClient    webClient         = new WebClient();
            HttpResponse response          = base.Response;
            object       length            = webClient.DownloadString("http://www.bing.com/").Length;
            double       totalMilliseconds = DateTime.Now.Subtract(now).TotalMilliseconds;

            response.Write(string.Format("Bing Returned {0} bytes of content in {1} ms", length, totalMilliseconds.ToString()));
            ConnectionUtilities.PrintConnections(base.Response);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            (new WebClient()).OpenRead("http://www.bing.com/");

            lblMessage.Text = ConnectionUtilities.PrintConnections();
        }
Exemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            (new WebClient()).OpenRead("http://www.bing.com/");

            ConnectionUtilities.PrintConnections(base.Response);
        }