在url中传递gb2312格式的参数,会出现论文的情况,怎么解决呢?
在调用页面使用
string strWord = Server.UrlEncode(txtSearchWord.Text);
在被调用页面使用:
_word =Server.UrlDecode( Request.QueryString["word"]);
在调用页面使用
string strWord = Server.UrlEncode(txtSearchWord.Text);
在被调用页面使用:
_word =Server.UrlDecode( Request.QueryString["word"]);
欢迎转载,转载请注明出处:http://www.cnblogs.com/Tonyyang/