Forum Moderators: open
Or use methods such as Request.URL to figure it out...and still plug it into.
I'm not sure if it is possible for use in the CSS link but you can try "~/yourstylesheet.css"...the tilde works in some ASP.Net instances to reference back to the root.
[edited by: Xoc at 1:22 am (utc) on Sep. 17, 2004]
[edit reason] changed to example.com [/edit]
store something like WebRoot = "http://www.example.com"
So, if you ever change domain names you just go to the config file and change the value instead of througout your code. There are also routines to parse out the domain name root from the server variables, etc.