Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

C# ASP.NET MVC Basics Views Adding a View Review

View Name in ASP.NET MVC Basics

Given a controller named Home and an action method named About, calling the View method without any parameters will cause MVC to look for a view named ___.cshtml in the “Views/_____” folder. I gave the answers as view named About.cshtml in the "Views/Home/About" folder, but it keeps giving me that the Answer is wrong.

1 Answer

Steven Parker
Steven Parker
220,634 Points

There would only be one "About".

You're right that file name would have "About" in the title, but the folder where it is found would only have the controller name.