I have a problem with my querystring, i call an action in my controller with javascript like this
if ((event >= 65) && (event <= 90) || (event >= 48) && (event <= 57)) {
var focussed = document.activeElement.id;
window.setTimeout(function () {
alert(in2.value);
location.href = "/CarSaldi/ListaArt?in1=" + in1.value + "&in2=" + in2.value + "&focus=" + focussed;
}, 1000);
}
in2 is a input text and might have a "+" inside it (for example "milk+chocolate"), when i call the action in my controller
public ActionResult ListaArt(string in1, string in2, string cod, string focus)
{
[...]
}
the string in2 shows my "milk chocolate", i expected milk+chocolate...i need to have also the "+" inside.