[RESOLVED]access javascript object in rezor


var a = $(‘#name’).val();



    int b = a      //?? can not access to a


Sounds interesting. But looks like, it is not possible but reverse is possible due to the sequence of execution. MVC Razor at server side (before sending to client), JS at client side.


Also, this makes worth to read, just to understand, why to separate js and razor code:


Leave a Reply