开发者

modular programming in ASP.net

开发者 https://www.devze.com 2023-02-20 04:34 出处:网络
I don\'t know whether usage of the term \'modular programming\' as the topic title is correct or not.

I don't know whether usage of the term 'modular programming' as the topic title is correct or not. I'm developing a website application which consist of different parts such as:

This software will be uploaded on different servers. This software should have a part using which the Administrator of software can physically remove the other mentioned above parts or add them again. If I wanna explain more, Administrator can check or uncheck the check boxes and specify which parts to physically remove or copy.

What can I do? I have heard about modular programming in CMSes like Drupal, Joomla in which a user can install or uninstall modules.

Can I remove my ASPX files in runtime?


Check out http://msdn.microsoft.com/en-us/library/ff648752.aspx. It says "They support XCopy deployment of independently developed modules."

But for the kind of modules you have mentioned I suggest to implement it as normal web site and deploy only ASPX files you want to give access. The DLL of website will have code for all the ASPX but you can deploy selected ASPX file and it is perfectly fine.

In addition to this you need to set navigation accordingly so that this removed files should not appear in navigation, for that you can use SiteMapDataSource.

Find example at http://www.w3schools.com/aspnet/aspnet_navigation.asp.

This sitemap is xml so it is easy to generate it dynamically based on same criteria of deploying selective ASPX files.

0

精彩评论

暂无评论...
验证码 换一张
取 消