I would like to set up a menu navigation on the left side of my page which is only shown up after the user logs in.
I don’t know how can I achieve this with MVC4 WebSecurity class and Razor in my index.cshtml file.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
try using 2 Layout:
_Layout.cshtml for non login user and
_memberLayout.cshtml for login user.
put your member menu in _memberLayout.
/Home/Index controller:
/Member/Index controller:
Index.cshtml in Member folder: