I would like to know how do I submit a value that I have in javascript for an @session. in the case it would look something like this:
I have a variable:
var id = $ (Person) .val ();
This ID wanted to use in a session variable, but I tried to do so:
@Session ["Person"] = id;
But when I run the error page in javascript. how could I do it?