求助:调用百度搜索引擎
程序代码:
protected void Button1_Click(object sender, EventArgs e) { string wd = TextBox1.Text.Trim(); wd = HttpUtility.UrlEncode(wd, Encoding.Default); WebRequest wrq = WebRequest.Create("http://www.baidu.com/s?wd= " + wd + "&cl=3 "); WebResponse wrs = wrq.GetResponse(); Stream strm = wrs.GetResponseStream(); StreamReader sr = new StreamReader(strm, System.Text.Encoding.GetEncoding("gb2312")); string allstrm; allstrm = sr.ReadToEnd(); Response.Write(allstrm); strm.Close(); }以上这段是调用百度搜索 引擎的代码,不过这个是在本页面打开的,现在我想实现跳转新页面打开 不知道怎么实现....
各位大侠 帮帮忙....先谢谢了....