By default, the @RenderBody in _Layout.cshtml in an MVC3 app points to ~/Views/Home/Index.
@RenderBody()
Where is this set and how do I change it to point to ~/Views/Account/Logon? Or wherever I want. Thanks
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.
It doesn’t point to that view, it merely renders the view that it is given
Your app starts up and goes to the default action on the routing which can be found in
Global.asaxYou can modify that to default to
/Account/LogOnif you wish