Login and Registration link disappear from mvc5 application menu bar

152 Views Asked by At

I am new to mvc5, and following a tutorial. When I start adding role to newly register user in Register action of AccountController, the link for login and registration are disappeared from menu bar. I undo the changes but links do not appeared back.

1

There are 1 best solutions below

0
Sharifullah Sharif On BEST ANSWER

I don't know why the @Html.Partial("_LoginPartial") has been remove from _Layout.cshtml file. I have added this piece of code in _Layout.cshtml file, and link to login and registration appear again in menu bar.