Within an MVC view I’d like to access a partial view from a different controller. Before I explain my issue at hand you should know where everything is in my solution:
Areas
MyArea
Views
Cont1
PartialPages
ViewImIn
Cont2
PartialPages
ViewICall
Now, in ViewImIn.cshtml I call ViewIcall.cshtml like this:
@Html.Partial("~/Views/Cont2/PartialPages/ViewICall.cshtml", Model)
But I keep getting the error stating that the “partial view was not found or view engine does not support searched locatio…”
I’ve also tried “../Cont2/PartialPages/ViewICall” and variations of it.
Try calling it like this