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

Simon Sporrong
Simon Sporrong
35,097 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.