Luticka
Luticka

Reputation: 649

Best way to share views across areas in asp.net mvc 3

I have my main area and i have a member area, some of the content in the main area can be used in the member area. The two area's have their own _Layout(MasterPage).

How can i have the same content in both areas following DRY?

Upvotes: 2

Views: 2135

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038710

You could use the ~/Views/Shared folder for storing views (layouts, partials, editor and display templates) between different parts of the application.

Upvotes: 3

Related Questions