I'm sending a parameter to my Controller via json which contains and ampersand and the string gets cut off after that character. Been searching for hours and cannot find a solution.
JavaScript
var url = '/Common/DownloadFile?fileName=Me&You.xlsx';
$.ajax({
type: 'POST',
url: url,
data: {},
success: function (data) {}
});
Controller
public ActionResult DownloadFile(string fileName)
{
// Here the param is coming in as 'Me'
// Code removed for clarity
}