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 trial

C#

Mohammed Abdalla
Mohammed Abdalla
7,448 Points

How 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

Steven Parker
Steven Parker
231,198 Points

What kind of problem did you have?

I would expect that if you added an action to the appropriate controller you could serve the page to the client easily enough.

Mohammed Abdalla
Mohammed Abdalla
7,448 Points

Thanks Steven I have solved it, instead of using ~/example/page, I have used ../example/page the double dots solved the url navigation problem.