0
'&'分隔查詢字符串參數變得編碼不管我做什麼。無法Response.Redirect(url);與許多查詢參數
// sitecore ASP.NET server side ascx code...
string url = string.Format("http://other-domain.com/?a={0}&b={1}", "1", "2");
Response.Redirect(url);
// ...
給我的瀏覽器地址:
http://other-domain.com/?a=1&b=2
這不是我想要的,我只是想:是HTMLencoding
http://other-domain.com/?a=1&b=2
是它的Response.Redirect()我' &'?
我該如何讓它離開那個分離器?
涵蓋相同的地面http://stackoverflow.com/questions/561954/asp-net-urlencode-ampersand-for-use-in-query-string - 看看Server.UrlEncode – dash 2012-04-03 22:50:01