famousgarkin
famousgarkin

Reputation: 14116

How to create an ASP.NET MVC 3 control/component that can be reused by other applications

I am required to deliver a component, inlcuding business logic and UI, to be used on a ASP.NET MVC 3 web site that is being developed by other company.

I know my way around ASP.NET WebForms server controls and how to package and distribute them to be reused across projects. I also have experience with MVC approach in general and some ASP.NET MVC experience. I did read over materials recommending use of HTML helpers and similar, but most of this deals with only UI reusability or reusability inside a single ASP.NET MVC project. I did not find any mentions of how to package and distribute such functionality for ASP.NET MVC.

The business logic is major part of this component. It is supposed to be a kind of wizard, which progresses through a lot of steps and which would also work with database using Entity Framework and send an email to the user upon completion.

I also did see a couple of vendors out there, such as Telerik, who sell something along the lines of ASP.NET MVC controls/components, so I assume this is somehow possible to do.

Upvotes: 9

Views: 6150

Answers (2)

rcaval
rcaval

Reputation: 762

This article tells how to call controllers from another assemblies.

To reuse only views, you can use RazorGenerator.

Upvotes: 3

Prasanth
Prasanth

Reputation: 3031

I recommend you to refer the MVC Control ToolKit Project page of CodePlex

Also see ASP.Net MVC Sprite Project

Upvotes: 2

Related Questions