How to get parent view from partial view

Viewed 13995

I have a partial view as part of the _Layout.cshtml, so that it gets rendered on multiple pages. Think of the partial view as a menu that gets displayed on every page on the website.

When one of these links in the menu of the partial view is clicked, I can only access/see in the Action Method that gets called the partial view, like it's name etc.

But what I really need to have is the View that the partial view was on when the item was clicked.

How can I get this?

1 Answers
Related