CSHTML code display in view sourceHello.
I have one simple application in mvc 5.
Here, I have written simple logic to display user name and other details of the logged in user.
For this, I have assigned some values to session and the code is written in cshtml using JSON.
Code is like,
sessionStorage.VirtualRoleId = '173';
If i open this page in browser and check view source, i can see this logic which I dont want to display.
Is there any other way to do this so that, my logic will not display in browser.