ASP.NET MVC 4 Getting the Control and Action used to call
In MVC 4
In a Partial View _MyView.cshtml I need to get the Controller name and the
Action used to create the parent calling view.
So if /Equity/Sell was the Controller/Action used to call the view which
rendered the partial view _MyView.cshtml , then in _MyView.cshtml I need
to be able to get "/Equity/Sell"
I don't see an object that can do that though.
No comments:
Post a Comment