Splitting to subprojects

J

jb

Am using the 'Web Application Project' model for an asp.net web app.

Sections of this now need to be reusable. Is it possible to split into
sub projects? What happens with /bin directory if so - are there bins in
each subproject? What happens with sessions?

Thanks

JB
 
C

carion1

Add a new class library project to your solution and drag the objects
you want seperated from your current project into the new project.
Add a reference to the new project and its soup. When the solution is
compiled it will automagically place a copy of the dll into the bin
directory of the web project.

Derek
 
J

John Saunders [MVP]

carion1 said:
Add a new class library project to your solution and drag the objects
you want seperated from your current project into the new project.
Add a reference to the new project and its soup. When the solution is
compiled it will automagically place a copy of the dll into the bin
directory of the web project.

Don't forget to change the namespace for the types you move, otherwise
you'll have the same namespace in two assemblies, and you may later get
confused about which parts belong where.
 
J

jb

John said:
Don't forget to change the namespace for the types you move, otherwise
you'll have the same namespace in two assemblies, and you may later get
confused about which parts belong where.

I am aware of using class libraries and already do so extensively - also
custom controls etc.

I am talking about splitting a site up into reusable parts using the
'Web Application Project' model; the aspx/ascx pages etc.

Thanks

JB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,054
Latest member
LucyCarper

Latest Threads

Top