Hi All,
Just a quick question about referencing a folder or files on a different server at design time...
My setup:
-Development Web Server(IIS) (mirror of production) holding the actual web site(aspx/dll files, images, css..etc)
-My laptop, holds the source code and web deployment projects.
Both machines are on the same network.
My question is...Can I reference a folder or set of files (namely the images and style sheet) on the web server from within a project, but not actually bring it into a project?
In other words, I don't want to have to hard code in the server URL for the images style sheet in order to to see them that in the design view. If I can make a "reference"(so when something is added to the folder or file, it will reference the server "new" version) to the folder or file, that would be best. Kind of link referencing a namespace on a different server. TO update you just click "Update Reference" and it brings in the newest version.
OR
Using something like the C# preprocessor directives that will work at design time.
Like:
#if (DEBUG)
imageURL = http://<dev server>
#else
imageURL = http://<live server>
There is a namespace called System.Web.UI.Design that lets you control design time elements but I can't seem to find any examples of how to use it...If it is even what I am looking for..
Unless there is a different what to approach this? I just want to be able to see the images and style sheet at design view, but have it be referencing the web server without the server address...Get me?
Thanks very much in advance!