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 Section Review

what is the controller's name is used if not provide the controller name when calling the Html.ActionLink helper method?

This question is from the ASP.net MVC basics towards the end. The video instruction does not seem covering this question.

1 Answer

Steven Parker
Steven Parker
231,248 Points

I'm pretty sure this is covered, but I don't recall exactly which video it is in. But when you don't explicitly provide another controller's name, the name of the current controller will be used.

I'm not sure why this was down voted. It's the correct answer. I went ahead and up voted it.

https://stackoverflow.com/questions/42163976/if-controller-name-is-not-provided-in-html-actionlink-control-which-controller

Steven Parker
Steven Parker
231,248 Points

Thanks, Michael. I seem to experience a "drive-by downvoting" (no comment left) every now and then. I invite the voter to leave a message letting me know what was wrong and how I might improve my answer.