Good evening list members. I was wondering if someone could possibly help with an issue that seems to have me stumped. I've done the usual search the archives routine with no luck.
We use Server.Transfer to fire over to pages that we require use of the context handler. Problem is relative paths. I understand that the ~ character can be used to get us to the root of the web app but I also have found that that is only true on server side controls. The problem at hand is when we drag our style sheet onto our web forms which inserts the link tag for the css. When run, the page works fine all classes are attaching to my grids and labels etc etc. However if this page is accessed from a server.transfer by a page at a different location in our directory structure it looses our style sheet. There really has to be something I've missed here. Is there another easy means of getting at the application root to set paths on controls that arent run on the server or a better way to attach a style sheet to all our pages where our relative paths will hold. On a side note this can be dropped onto multiple servers inside multiple applications so I'm not able to build a URL based on the server name alone, I need to reference relativly or by application root. Any tips or ideas would be greatly appreciated. Chris You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.