eqkvuvtrsh
New Member
Is there a good way to write UI components that can be shared across MVC (Razor) and WebForms applications? We would like to be able to develop UI components that all of our applications can make use of without having to split the code base. An important consideration is the ability to specify dependencies such as style sheets, javascript files and other resources.The way we package things up for WebForms applications is to embed all the resources a webcontrol needs into the assembly, which means everything is very self-contained and application developers don't need to piece together all the bits to get things working. I noticed in the MVCContrib project there is something similar with Portable Areas.[This question also extends to the idea of visual inheritance (master pages / layouts) - again we currently embed these with associated resources into an assembly and load up via a VirtualPathProvider. Not sure if I should ask a separate question about this?]Any ideas welcome.Thanks.