如果在一段URL中需要回调地址作为参数,防止乱码,可以这么写:
localhost:15521/Customer/SingleLogin?backurl=" + HttpUtility.UrlEncode(returnUrl);
解码方法: HttpUtility.UrlDecode(returnUrl);