Why does Request.QueryString[“path”] converts all + signs to spaces?
问题 I have a javascript code like this : function OnRequestComplete(result) { // Download the file //Tell browser to open file directly alert(result); var requestImage = "Handler.ashx?path=" + result; document.location = requestImage; } and Handler.ashx code is like this : public void ProcessRequest(HttpContext context) { Context = context; string filePath = context.Request.QueryString["path"]; filePath = context.Server.MapPath(filePath); } In filePath we don't have any + signs (spaces instead).