大虾们 这段代码是用什么环境编写的啊?
编程初学者,想抓取一级URL 向人求教了个代码 但是 大虾没指出什么环境运行 所以麻烦各位 谁能看出来啊?
或者能给出新的代码抓取所有的一级URL
protected void Button1_Click(object sender, EventArgs e)
   {
   TextBox2.Text = "";
   string web_url = this.TextBox1.Text string all_code = "";
   HttpWebRequest all_codeRequest = (HttpWebRequest)WebRequest.Create(web_url);
   WebResponse all_codeResponse = all_codeRequest.GetResponse();
   StreamReader the_Reader = new StreamReader(all_codeResponse.GetResponseStream());
   all_code = the_Reader.ReadToEnd();
   the_Reader.Close();
   ArrayList my_list = new ArrayList();
   string p = @"http://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?";
   Regex re = new Regex(p, RegexOptions.IgnoreCase);
   MatchCollection mc = re.Matches(all_code);
   for (int i = 0; i <= mc.Count - 1; i++)
   {
   bool _foo = false;
   string name = mc[i].ToString();
   foreach (string list in my_list)
   {
   if (name == list)
   {
   _foo = true;
   break;
   }
   }//过滤
   if (!_foo)
   {
   TextBox2.Text += name + "\n";
   }
   }   
   }
------解决方案--------------------NET平台
------解决方案--------------------Visual Studio .net,C#语言写的一个按钮点击事件的处理函数
------解决方案--------------------visual studio 2008
------解决方案--------------------c#写的按钮事件处理函数