Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMohammed Abdalla
7,448 PointsHow can I add a static existing HTML page to my ASP.NET MVC project?
I have built a MVC project and I have an existing HTML pages form another project, I want to add these pages to my MVC project, when I added them I got URL routing problems
2 Answers
Allan Clark
10,810 PointsLikely you need to create a controller action for each of the pages. Remember the url is of the form: ...com/{Controller}/{Action}
Mohammed Abdalla
7,448 PointsThanks Allan I have solved it, instead of using ~/example/page, I have used ../example/page the double dots solved the url navigation problem. Thank you