(1)*.aspx中的代码
(2)*.aspx.cs中的代码
protected void btn_Click(object sender, EventArgs e)
{
string texthere = text1.Text;
string searchtext = "http://www.baidu.com/s?wd=" + System.Web.HttpUtility.UrlEncode(texthere, System.Text.UnicodeEncoding.GetEncoding("GB2312")).ToUpper()
+ "&cl=3";
Response.Redirect(searchtext);
}
(3)相关解析