• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

ASP IIS questions, absolute links?

Zargon

Lifer
I have a few includes I want to toss into some pages, the CSS, and a floating CSS based menu.

can I use absolute paths for that somehow?

I have to modify about 60 pages, and it would be nice to just basically cut and paste into them all

instead of modying the path for each page


this is all intranet stuff FWIW.
 
Last edited:
I can only come up with a few cases where you would want to use absolute paths, and most of those involve sourcing files that aren't local or for storing files outside of your webroot for security purposes.

Using absolute paths in a web app is just asking for trouble IMO, especially if they aren't even changeable via an application.config file. Even if it's on an intranet only, what happens if someone needs to reinstall the application and they don't put it in the exact same locations that the source(that they might not be able to see) is expecting?

Are you using classic ASP or is this an ASP.NET application?
 
I can only come up with a few cases where you would want to use absolute paths, and most of those involve sourcing files that aren't local or for storing files outside of your webroot for security purposes.

Using absolute paths in a web app is just asking for trouble IMO, especially if they aren't even changeable via an application.config file. Even if it's on an intranet only, what happens if someone needs to reinstall the application and they don't put it in the exact same locations that the source(that they might not be able to see) is expecting?

Are you using classic ASP or is this an ASP.NET application?

not really web apps, just include paths for some css and a header menu that all pages will use, aqnd its definately a 'business condition I cant control'

would like to just cut and paste the inlcudes 60 times instead of tweaking it for each folder ETC

Yeah its easy to do. I would use an absolate path without the domain name though.

See

http://webdesign.about.com/od/beginningtutorials/a/aa040502a.htm


I figured it was something simple I was forgetting from being way out of practice....


but when I do it that way, with the leading slash, I get a 500 error


EDIT:

because with ISS as was pointed out above, I have to do a VD or not use the actual whole file path from drive letter up.......

thanks guys.

tryyin to shake off some rust, and havent done much advanced anything in IIS
 
Last edited:
Back
Top