Search code examples
asp.net-mvcviewpartialarea

Render Partial View from Area in MVC


I have a main MVC application wherein I have few Areas, for instance Sales and Marketing. These 2 areas are separated in 2 different MVC applications. Is it possible to render partial Views from these 2 areas into my main MVC application?


Solution

  • You could specify the full location of the view when rendering it Inside main view you can do like this

    @Html.Partial("/Areas/User/Views/SomeController/Sales.ascx") 
    

    @Html.Partial("/Areas/User/Views/SomeController/Marketing.ascx")