In ASP.NET webforms we have server components, that can be encapsulated into an external assembly and shipped as product. In ASP.NET MVC we don't have server components, so what's the best option for external components?
Looking around it seems like the only possible option is making an Html helper method that returns a bunch of html + js that manipulates things. And if the component needs some logic, a http module that add some new routes and a controller defined in the same external assembly to handle the ajax calls.
Otherwise RenderPartial only returns a view... but a view is a real file, so difficult to encapsulate in an external assembly unless it's added as resource file and then retrieved using a path provider that looks into the resource file instead of a real location on the disk.
Or are there any other options I'm not considering?
Thx Simo