views:

24

answers:

0

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. This class is generic and works for all widgets, but needs to instantiate specific classes for each widget and those classes need to be distributed as part of the widget code.

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?