检测 一个网站URL是否可以正常访问

 WebClient webClient = new WebClient();
        try
        {
            webClient.OpenRead("http://www.wq8.cc/index.a");
        }
        catch (Exception ex)
        {
            Response.Write(ex.Message);
        }
posted @ 2011-05-17 15:30  solomon_Blog  阅读(1082)  评论(0编辑  收藏  举报