I have two _Shared.cshtml
(MVC masterpage type, I do not know the name) and both are pretty much the same, only the left menu is different.
I would like to do only 1 and according to the querystring I will call the page I want to be the menu: ex
@if (Request.FilePath.Contains("Home"))
@ { $("#IDMenu").load('menu_Home.html'); }
@ else
@ { $("#IDMenu").load('menu_Admin.html'); }
More or less so.
Basically today my application has 2 url
localhost: 47123 / home /
or
localhost: 47123 / Admin /
If it's Admin I want it to call menu_admin.html if it's home it will call another page.
I do not know how to use the Razors.