B
B
Bogdan2018-10-17 19:34:16
ASP.NET
Bogdan, 2018-10-17 19:34:16

How to display the Index() action from another project in a solution?

I have two web projects in a solution. The first one ( A ) is assigned as an autoload project. The second one ( B ) displays a table of data, via the Index() action. I need to display the Index() action from the project ( A ) in the project view ( B ). I've tried using these methods, but after doing the Index() action, the view engine starts looking for a view in the project ( B ).

Html.Action ("Index", "Home")
Html.RenderAction ("Index", "Home")

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question