或者是wd = HttpUtility.UrlEncode(wd);
飘过~~
string wd = TextBox1.Text.Trim(); wd = HttpUtility.UrlEncode(wd, Encoding.Default); Response.Write("<script>window.open('http://www.baidu.com/s?wd= " + wd + "&cl=3')</script>");这样子就好了....谢谢大家了....