Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Separate DLLs per Namespace

Status
Not open for further replies.

SBGibson

Programmer
Apr 18, 2001
125
IT
Hi guys,

I would like to know if there's a way to have a single ASP.NET webapplication but creating separate dlls, one for every namespace included into that webapplication.
Now it seems that every namespace contained in a webapplication is compiled into a unique dll but I would like to separate different section of the site (asp pages, classes etc) using different namespaces and different dll.
It's possible? Stevie B. Gibson
 
One project = One dll

If you want separate dll's, then you'll have to physically separate your application into different projects, and then pull them all together into one master web project to get them all working together.

It's a good design pattern for very large projects. The smaller the projects, the less sense it makes to do it.
penny1.gif
penny1.gif

The answer to getting answered -- faq855-2992
 
But if I create many webapplication session variables differs from one to another, I have to share sessions as one only application, but having more than one dll. :( Stevie B. Gibson
 
No, you create several different class projects, each handling their own "tier" of work (data, business logic, etc...). They compile into their own dlls.

Then, you create a web project, where you add references to these different projects, and the web pages in this project call upon the functionality of your other tiers to do their work.

Session is maintained w/in the single application that pulls together the other application logic.
penny1.gif
penny1.gif

The answer to getting answered -- faq855-2992
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top