I'm doing a project in visual studio mvc4 c# trying to send a string from a JavaScript function in a View to a controller. I tried to use the Session Object like this:
in the View:
Session["matStr"] = matrixString;
in the Controller:
var s = (string)Session["matStr"];
but when I get to the controller the Session returns me null.
so I'll be glad to know the answer how to send a JS' string from view to controller thank in advance..