Link to home
Start Free TrialLog in
Avatar of Cragly
Cragly

asked on

How do you build ASP.NET website using modules?

Hi all,

I have a Visual Studio 2008 solution that looks like this:

BLL (C# Class Library)
DAL (C# Class Library)
Website1
Website2
Website3

What I want to be able to do is create modules that each of the websites can utilise. One of the modules I would like to create is a simple messaging module that can be used in each site that allows its users to send email like messages to people in their address book. I have looked into using the Microsoft Web Client Software Factory (WCSF) but this does not satisfy my needs. I also thought maybe of an ASP.NET Server Control but I dont think that is the way forward. Maybe I am using the incorrect architecture for the project?

Any suggestions from you experts out there?

Many thanks

Craig
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Create class library projects for the data access and business logic layers, and then reference those DLLs in the web site projects.

Bob
Yeah just upload them to a directory called bin that is located in your root and you will be able to reference them from your code.
Avatar of Cragly
Cragly

ASKER

Thanks for your reply guys.

I understand what you are saying and that is how I would normaly build my apps but thsi time I want to build a complete module just as you would build an asp.net user control and reuse it across my web apps. So for instance if I created a control libary called Messaging I want to create a module that I can drop into each site. I was just not sure that a control libary was the best way to go for this.
ASKER CERTIFIED SOLUTION
Avatar of lunadl
lunadl
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Cragly

ASKER

Thanks for the help but have decided to go with a completely different archetecture but there is nothing wrong with the solution you provided so have awarded the points. Many thanks for your help.