Hi George, > It would be great if someone a whole lot smarter > than me had a way of doing this.
It sounds like what you're wanting to do is simulate the server folder dynamics locally so you don't have to duplicate content and risk problems in change management. If so, use different folders off of root for the include folders (say, one uses "/one" and the other uses "/two"), then map these folders as virtual directories of the same name from root. Then, when you hit a page with a virtual include from root it'll hit the correct folder. Here's an example: Assuming the following two sites: Site1 (d:\my websites\site one\): /one/dbconn.asp /file.asp Site2 (d:\my websites\site two\): /two/dbconn.asp /file.asp Site1 file.asp: <!--#include virtual="/one/dbconn.asp" --> Site2 file.asp: <!--#include virtual="/two/dbconn.asp" --> Now in IIS map the following folders as virtual folders: d:\my websites\site one\one\ => /one/ d:\my websites\site two\two\ => /two/ Now, under localhost you'll have the following folders: http://localhost/site%20one/ http://localhost/one/ http://localhost/site%20two/ http://localhost/two/ And if you hit either: http://localhost/site%20one/file.asp http://localhost/site%20two/file.asp ...it'll "include" the correct file from the appropriate includes folder. Regards, Shawn K. Hall http://12PointDesign.com/ http://ReliableAnswers.com/ '// ======================================================== Be consistent - but don't do it all the time. ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/17folB/TM --------------------------------------------------------------------~-> --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
