rem
rem

Reputation: 17055

ASP.NET MVC View ExecuteResult for another controller

What is the equivalent of:

   this.View("ViewName").ExecuteResult(this.ControllerContext);

for showing a view which is in another controller.

I.e. how to replace this.ControllerContext by another controller's context?

Upvotes: 1

Views: 1580

Answers (1)

Aaron Weiker
Aaron Weiker

Reputation: 2531

If you want to share a view across controllers, why don't you use the Shared folder and put the view in there?

Upvotes: 4

Related Questions