In my _layout.cshtml i want to add a menu like that:
i want to pass
@Context.User.Identity.Name
as e_id. Can i pass it in that way?? if not then what is the other way?When I hard coded like that:
it don’t redirect me in the User controller Details action.when i give URL like that:
http://localhost:48096/User/Details?e_id=awladliton@gmail.com
It Works Fine. Thanks in advance
Use like this
It uses this overload
If you want to pass any custom HTML attributes to the link element, you can replace the fifth parameter with that
Ex :