How to reference web-related files above/outside the root of default.aspx
Posted on 2013-02-06
I want to structure a variety of web apps as such:
Having quite a few web apps that will use common code, i want a directory within C:\Webapps\ that can be referenced by each and/or any website, instead of duplicating code all over the place.
Contributing to the problem, I'm working on these apps on my local machine which is a windows XP and IIS6 machine with Visual Studio 2010.
After each application's completion, it will be deployed to a server (2007) with IIS7.
There could be two possible solution to 1) get this to work on my machine in a "generic reference" manner, and 2) get this to work on the web server, with as little effort as possible to change from a local-based solution, to a server-based solution.
I've read quite a few articles, but nothing concrete explaining how to do this (include/get access to the files) for the different file types in ASP.net:
* .js files
* .css files
* .aspx files