Re: Multiple website for a unique collection of codebehind files
From: Troy Busot (troy@busot.com)
Date: 06/28/02
- Next message: M. Shawn Dillon: "Re: Certificates and Cryptography (Please HELP!)"
- Previous message: Troy Busot: "Re: Multiple website for a unique collection of codebehind files"
- In reply to: Mabouya: "Multiple website for a unique collection of codebehind files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Troy Busot" <troy@busot.com> Date: Fri, 28 Jun 2002 14:31:50 -0700
The best way to go about this functionality would be to set up a single
solution that contains a single or set of common projects and a single or
set of Web Site projects.
So:
1) Create a single solution - let's call it GlobalSolution.
2) GlobalSolution solution add a single project - we'll call it
GlobalLibraryProj (namespace mabouya.globalLibrary)- which has all of your
class files, etc that you want to share accross the different sites.
3) Then, create a different project for each site. In each site, add a
Project Reference back to GlobalLibraryProj. Then, at the top of each local
codebehind page, add the "using" directive like "using
mabouya.globalLibrary;"
GlobalSolution
+ GlobalLibraryProj (mabouya.globalLibrary namespace)
+ myBlueWebSite (mabouya.websites.myBlueWebSite namespace) (References
Lib)
+ myRedWebSite (mabouya.websites.myRedWebSite namespace) (References
Lib)
Then, if you have a class in globalLibrary called User, you would reference
it in myBlueWebSite like:
mabouya.globalLibrary.User user = new mabouya.globalLibrary.User();
You can also set up an alias to make that reference call shorter.
Hope it helps.
------------------------------
Troy Busot
Senior Web Architect
Busot Interactive
[P] 602-430-0237
[E] troy@busot.com
Then, any common functionality that you want to have
"Mabouya" <antoine@mabouya.net> wrote in message
news:Oq0dwhuHCHA.2024@tkmsftngp11...
> Hi,
>
> Is it possible to run an ASPnet website on a virtual directory (in wich
> there would be only webforms aspx files) calling the codebehind vb files
in
> a directory of the hard drive (outside virtual directory) ?
>
> I explain what ui want to do :
> - To have a collection of codebehind vb files in a unique directory of the
> server
> - To run several websites (on the same server) with a different design
each
> but exactly the same fonctionalities and access to database. In another
way,
> different aspx files each but same referant codebehinds functions vb
files.
>
> --> the idea is to have a unique codebehind collection for all the
websites
> in order to optimize update (une update on codebehind will apply to all
the
> websites).
>
> Thanx a lot for your help and suggestions !
>
>
>
>
>
- Next message: M. Shawn Dillon: "Re: Certificates and Cryptography (Please HELP!)"
- Previous message: Troy Busot: "Re: Multiple website for a unique collection of codebehind files"
- In reply to: Mabouya: "Multiple website for a unique collection of codebehind files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|