I’m developing a web in MVC3 razor and I want to send as an argument a javascript variable, but I don’t know if this is posible. The code is something like this:
function clean(caja) {
@{
Inicio.Controllers.kitClass kit = new Inicio.Controllers.kitClass(caja);
kit.clean();
}
}
Thanks for your help.
No it is not. you will have to make an ajax call.