Click here to Skip to main content
15,063,287 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am working on a moderately big MVC project. This project consists of different Areas. There are separate Views and models for each Area. I am having an issue with controlling a part in my Master Layout page.
There is a Partial View inside every Area which does the same job. A specific model that is used in the partial view is the same.
So despite having different Partial Views inside every area, I was trying to have a Common Partial View that can be used by every Area. But I can't come up with a suitable solution.
Can anybody help me with this? Where should I put my Common Partial View so that every View in every Area can use it?

What I have tried:

tried to find some ansers on the net
Updated 13-Jul-20 7:41am

1 solution

Put your partial view in the /Views/Shared/ folder.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900