In an ASP.NET Web Site Project, what is the best option to manage modular widgets
- by Juan Sagasti
We are creating a modular Web Site Project and all the UI is based on simple html pages with javascript widgets.
These widgets obtain the data from a WCF class located in the app_code folder.
Each widget has 3 files [ js, css , cs] and an image directory: , and we want all these files to be located under the same directory, say: /widgets/mywidget/
The problem is that the .cs file needs to be in the app_code folder to be compiled dynamically and that would break our widget modularity forcing the installator to distribute the widget code in two places.
One of the options is use compiled assemblies instead of .cs files and use Assembly.Load() or smthg similar to load them when needed.
What other options do you see?