473,769 Members | 2,232 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to create a modular ASP.NET application ?


I'm working on a web application where 90% of it is common 'product'
code an the other 10% is customer specific.

I want some method of separating the customer specific presentation,
business and data access layers from the product code as I don't the
main product code to be bloated with customer specific code.

Ideally I'd like to have one solution for the product and one for each
customer. However I haven't found a way to separate the presentation
layer.
I thought that the Web Client Software Factory would work, however it
still requires the .aspx files for the modules to be part of the main
web-site/application - which doesn't seem very modular.

I would also like to be able to use the ASP.NET 2.0 features like
master pages, themes etc.

Anyone have experience of such a solution or should I just give up on
a modular approach :)

Thanks,
CJB.

Aug 1 '07 #1
2 3481
Move your functionality into the business layer, where it belongs. Add a
facade to aid the UI layer. And, if there is any business that is client
specific, put into its own library.

You can, in general, leave the ASPX files alone and use Themes for client
specific. On the pieces that the form works the same, essentially, for all
implementations , but slightly different for client, make a client version of
a library.

Experience? Sure, I am in the process of doing it now. It is a bugger to get
it right and you have to plan it out on paper before getting too far into
coding. If you are still embedding code in your ASPX pages, quit it now. It
will not be modular.

If you are not well-versed in tiered development, consider purchasing the
Design Pattern Framework 2.0 from dofactory.com. It is cheap and will teach
you patterns in addition to giving you a reference architecture.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

*************** *************** *************** ***
Think outside the box!
*************** *************** *************** ***
"Canice" <ca*********@cr estsolutions.ie wrote in message
news:11******** **************@ g4g2000hsf.goog legroups.com...
>
I'm working on a web application where 90% of it is common 'product'
code an the other 10% is customer specific.

I want some method of separating the customer specific presentation,
business and data access layers from the product code as I don't the
main product code to be bloated with customer specific code.

Ideally I'd like to have one solution for the product and one for each
customer. However I haven't found a way to separate the presentation
layer.
I thought that the Web Client Software Factory would work, however it
still requires the .aspx files for the modules to be part of the main
web-site/application - which doesn't seem very modular.

I would also like to be able to use the ASP.NET 2.0 features like
master pages, themes etc.

Anyone have experience of such a solution or should I just give up on
a modular approach :)

Thanks,
CJB.

Aug 1 '07 #2
On Aug 1, 4:07 pm, "Cowboy \(Gregory A. Beamer\)"
<NoSpamMgbwo... @comcast.netNoS pamMwrote:
Move your functionality into the business layer, where it belongs. Add a
facade to aid the UI layer. And, if there is any business that is client
specific, put into its own library.

You can, in general, leave the ASPX files alone and use Themes for client
specific. On the pieces that the form works the same, essentially, for all
implementations , but slightly different for client, make a client version of
a library.

Experience? Sure, I am in the process of doing it now. It is a bugger to get
it right and you have to plan it out on paper before getting too far into
coding. If you are still embedding code in your ASPX pages, quit it now. It
will not be modular.

If you are not well-versed in tiered development, consider purchasing the
Design Pattern Framework 2.0 from dofactory.com. It is cheap and will teach
you patterns in addition to giving you a reference architecture.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBAhttp://gregorybeamer.s paces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

*************** *************** *************** ***
Think outside the box!
*************** *************** *************** ***"Canice" <canice.b...@cr estsolutions.ie wrote in message

news:11******** **************@ g4g2000hsf.goog legroups.com...
I'm working on a web application where 90% of it is common 'product'
code an the other 10% is customer specific.
I want some method of separating the customer specific presentation,
business and data access layers from the product code as I don't the
main product code to be bloated with customer specific code.
Ideally I'd like to have one solution for the product and one for each
customer. However I haven't found a way to separate the presentation
layer.
I thought that the Web Client Software Factory would work, however it
still requires the .aspx files for the modules to be part of the main
web-site/application - which doesn't seem very modular.
I would also like to be able to use the ASP.NET 2.0 features like
master pages, themes etc.
Anyone have experience of such a solution or should I just give up on
a modular approach :)
Thanks,
CJB.
Thanks for the reply Gregory.

The application will be split into DAL, Business and Presentations
layered and within the presentation layer I'm using the MVP pattern,
so all that will be in the ASPX pages is the asp.net controls, HTML
etc. Any UI related logic will be in the Presenter class and all
business logic will be in a another layer.

However some of these ASPX pages will still be customer specific and
I'd prefer not to deploy them with every install.

Regards,
Canice.

Aug 2 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
3777
by: Hayden Kirk | last post by:
Hey guys I am about to write some back end software for my business. I want a system that I can create invoices, clients etc... I can do this no problem. However I want to write it in modules so its extendable in the future. Like someone else can write a module for it and it can plug stright into my system. I can't figure out a good way to do this in php. I was thinking of hooks or something, but PHP does not support this.
1
1839
by: Jeff B. Jr | last post by:
First off, let me say that I'm still relatively new, so please bear with me. My problem lies in creating a program that has two parts, a core application, and then other modules that can be added in for greater functionality. The program was originally written in VB6 and the modules were created as ActiveX exe's that would be accessed by using the CreateObject command and then supplying two strings which have the root namespace and the...
1
9941
by: Derek | last post by:
Hi All, I am developing a Windows based application that consists of several different modules. These modules are effectively separate from each other yet share information in a common database. I would like to be able deliver specific modules depending on what the needs of the client are. Some clients may only need Module A and B, while others may need the functionality in Module D. What I am trying to figure out is the best way to go...
4
2309
by: Nick Goloborodko | last post by:
Hi, I'm in the process of conceptualizing a new ASP.NET application. I'm a relative newbie in ASP.NET / .NET in general, so any comments will be greatly appreciated. Basically i need to make my application as modular as possible, something along the lines of Mambo (PHP CMS System) Drupal (another PHP CMS) or something similar to these. What I'm thinking is to provide the following structure: core of the application includes essential...
26
4854
by: I_AM_DON_AND_YOU? | last post by:
This is the scenario: I have a VB.Net project comprising of a few Forms. On Form1 I have more than 20 buttons. There is a very lenghty code written in click event of each and every button. Right now I haven't used any sub procedure. I mean to say I am writing the code directly in the click event. So it's become very lengthy and therefore to figure out some problem or make any changes I have to scroll at lot. Also in addition to click...
2
1160
by: Peter Kubicsek | last post by:
Hi I need help. I'm trying to write modular APP which have only basic interfaces to work with database, and etc. All specific code will be in modules (dll's), which can be loaded/unloaded from main app. I know how to write this modules with IDTExtensibility2 interface, but don't know how to write application interface which can work with addins (modules). Can someone eplain me way how to do this? I want something like in Office App,...
4
1898
by: Gary Kahrau | last post by:
Can the following be done with vb.net? Would c# do a better job? I am thing of creating a very large project in vb.net (hundreds of forms?). I would like to have many project files each containing a managable number of forms and dealing with a logical business function (scheduling, purchasing, shipping,.....) When the program runs, I want the user to "see" one integrated program. I don't want a lot of forms poping up all over the place.
0
1026
by: Leif K-Brooks | last post by:
I'm writing an application with PostgreSQL as the database which I would like to be as modular as possible. It will have various modules, each of which will have their own database schema. A module with users might define a user table, but an RPG module would want the user table to have a column for money. I don't want the users module to know about the RPG module beforehand, so it can't have the money column. Should the RPG module...
20
6824
by: Tuvas | last post by:
I have made and recently posted a libary I made to do Modular Arithmetic and Prime numbers on my website at http://www.geocities.com/brp13/Python/index.html . I am currently in a crypotology class, and am working on building a RSA public key cryptology system for a class project. I am building the librarys just to get the experience to do so. However, I would ask if any of you know of any gaping security holes that can easily be seen from...
0
9422
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10206
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9851
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7403
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5293
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3949
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2811
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.