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 Adding a List Page Improving Navigation

Simon Sporrong
Simon Sporrong
35,096 Points

Setting the ShowBackBar in the Index.cshtml as well?

I wonder if setting the ViewBag property ShowBackBar in the Index view is a good example of letting other developers who is looking at the code know how I am thinking. If I set the property to false in the Index view then it's quite clear that i don't want the back bar on the index page. Is that a good approach or am I overdoing it?

1 Answer

Matthew Cushing
Matthew Cushing
12,048 Points

A bit late but I don't think that that is a bad idea in the slightest. Especially if you think that it is relaying your message better which I believe it does.