Velu
Velu

Reputation: 895

Reuse ASP.NET MVC Views & Controller

We are having the two different website running for different products (both sites have different MVC projects) . I would like to create the forum software using ASP.NET MVC.

Can any one help how can i reuse Forum (Views & Controller) in two different sites ?.

Upvotes: 1

Views: 1539

Answers (3)

IAmGroot
IAmGroot

Reputation: 13865

You could also use .Net Libraries, and then link your controllers to that.

Upvotes: 2

bobek
bobek

Reputation: 8020

Check this out: http://www.chrisvandesteeg.nl/2010/11/22/embedding-pre-compiled-razor-views-in-your-dll/ You should be able to reuse assemblies and create relative paths.

Upvotes: 1

m0sa
m0sa

Reputation: 10950

You should look into portable areas in the MvcContrib project

Upvotes: 2

Related Questions