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# 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
229,644 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.