Can a view be shared across multiple controllers? If Yes, How we can do that?

Technology CommunityCategory: ASP.NET MVCCan a view be shared across multiple controllers? If Yes, How we can do that?
VietMX Staff asked 3 years ago

Yes, we can share a view across multiple controllers. We can put the view in the “Shared” folder. When we create a new MVC Project we can see the Layout page will be added in the shared folder, which is because it is used by multiple child pages.