如何用.net实现   将google或者其他搜索引擎搜索出来的信息列表 显示到指定页面的指定区域?
请高手指点,谢谢

解决方案 »

  1.   

    WebClient访问google或其他引擎。返回的结果的包含html的string,把<body>标签之间的东西拿出来,直接输出到页面上。
      

  2.   

      using (WebClient wc = new WebClient())
               {
                   wc.Proxy = null;
                          wc.DownloadFile("http://www.google.com/search", "result.html");
                 System.Diagnostics.Process.Start("result.html");
               }
      

  3.   

    <frameset>
    <frame  name="">
    </frameset>
      

  4.   


    是呀 我就这么做的,可是怎么把<body>标签之间的东西拿出来,来点代码提示下
      

  5.   


    正则表达式
    string pattern = @"<body[^>]*?>([\s\S]*?)</body>";
    string body = Regex.Match(html, pattern, RegexOptions.IgnoreCase).Groups[1].Value.Trim();body就是<body>里的内容 -)