Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

Sharing code between Projects.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Miguel - 16 Apr 2008 10:44 GMT
Hi Everybody!!

 I'm trying to migrate a lot of asp 3.0 applications to  asp.net.

The problem is that currently my directories structure are like this:

- myIncludes/DBConnections
- myIncludes/MyStyles
- myIncludes/MyLibrary

- MyDir/MyApplication1
- MyDir2/MyApplication2
-  ...

    Now, I have a lot of functions and connectionStrings in the
folder "myIncludes/MyLibrary", and all of my applications share them
with an #include clause. So if I change a Database user/Password I
just have to change it in only one file which is located in
( myIncludes/DBConnections ).

    Do you know how can I structure my WebSite in order to keep this
hierarchy/functionality in .NET??  By now I have to create a WebConfig
for each application, with the ConnectionString, and I have to
replicate all code that is shared by all my application.

    Thank you very much for your answer.

Miguel.
Eliyahu Goldin - 16 Apr 2008 10:54 GMT
Make a separate code library project and include it in every application. Or
just reference the dll produced by that project.

Signature

Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

> Hi Everybody!!
>
[quoted text clipped - 24 lines]
>
> Miguel.
Miguel - 21 Apr 2008 10:08 GMT

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.