一、

可以用下面的格式加密:

dim url as string

url="description.aspx?type="+Server.UrlEncode(addtype.text)

response.write(url)

这个是接受时解密:

dim type as string

type=Server.UrlDecode(Request.QueryString("type"))

注:UrlEncode可以解决参数中有中文的问题,但如果参数中的内容为英文就不行了。

二、

加密:

string query="hahaha";

"http://b.aspx?id="&HttpUtility.UrlEncode(query);