Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Splitting / Modularizing Large ASP.NET Web Application Projects

Our company has a fairly large ASP.NET web application. The app is already broken up into distinct 'areas' of business functionality. I'm looking for some strategies we can use to split this web application into separate buildable/versionable modules.

Primary goal being to:

Enable us to deploy the web app with only select areas of functionality.

I envision the parent web app as a 'shell' that can host 'plugins' which can register themselves as menu items on the parent web app's navigation hierarchy. The parent web app would contain the master page, stylesheets and common controls used by the plugins.

What kinds of ideas do you have for implementing something like this?

like image 551
joshuapoehls Avatar asked Dec 19 '08 18:12

joshuapoehls


2 Answers

I would do sub-web projects. Each website is a sub-project of the parent website. You can write an HttpModule that checks some data store to see if that customer has access to that site (module) and deny access in that way. Scott Guthrie has a nice post about how to set up sub web projects here.

like image 83
Robert C. Barth Avatar answered Nov 09 '22 22:11

Robert C. Barth


One easy way to do this would be to simply use a SiteMap. You can segregate your aspx files and compile different dll's all you want. The SiteMap is completely independent and can be configured however you want to include whatever modules you want, with whatever permissions you want. There's no real need for any code modules to register themselves with other code modules. This is ASP.NET, each request is independent and can start at any aspx entry point. As far as your pages are concerned, enabling cross-module functionality is as simple as providing a link to a page in another module. The SiteMap accomplishes this handily.

like image 39
sliderhouserules Avatar answered Nov 09 '22 22:11

sliderhouserules