public string UrlEncode(object obj)
{
string urlEncode = "";
string str = obj.ToString();
urlEncode = HttpUtility.UrlEncode(HttpUtility.UrlEncode(str, Encoding.UTF8), Encoding.UTF8);
return urlEncode;
}
这个是解决URL转码的小方法,处理页面中文参数转码,很简单,很实用