1

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?

1 Answer 1

4

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.