I have a hard coded html website of 5 pages and want to convert it to mvc4.
what do i need to do?
Is there a tutorial or step by step guide outlining how to make .html files dynamic via MVC?
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.
You are going to want to get a basic understanding of MVC and especially the routing before you change it over – you will avoid a lot of confusion and pitfalls in the future.
Basically, all you will need to do is create Controllers (dummy, for now) for your html, and copy the html into the respective View. This will all make sense when you understand the routing in the global.asax file. Then I would update the links to
@Html.ActionLinksyntax and move from there – likely next extracting a_Layoutfor universal design, etc.Basically, read a quick tutorial at minimum, or you will just frustrate yourself.