比如说,在textbox1中输入网址,按下Button键,在textbox2中显示出该网页的超链接,通过点击这些链接可以实现页面跳转
我的想法是
protected void Button1_Click(object sender, EventArgs e)
    {     if (!IsPostBack)
        {
            string url = textbox1.text;
            HttpWebRequest requestPage = (HttpWebRequest)WebRequest.Create(new Uri(url));
            try
            {
                WebResponse responsePage = requestPage.GetResponse();
                StreamReader Reader = new StreamReader(responsePage.GetResponseStream());
                string Page = Reader.ReadToEnd();
                responsePage.Close();
                String regularArticle = @"<a\shref=""/wiki/[a-zA-Z_]+""\stitle=""[a-zA-Z\s]+"">[a-zA-Z\s]+</a>";
                Regex r = new Regex(regularArticle, RegexOptions.IgnoreCase | RegexOptions.Compiled);
                Match m = r.Match(Page);
                string t = null;
                while (m.Success)
                {
                    string href = m.Groups[0].Value;
                    t += href + "<br/>";
                    m = m.NextMatch();
                }
                textbox2.text=Response.Write(t);            }
            catch (Exception ee)
            {
                Response.Write(ee.Message.ToString());
            }
        }
好像不行,高手指教~!