Hello,
I'm writing an ASP.Net 2.0 web site that utilises Themes. For this web site I've written a URL rewriter HttpModule, this is causing hell with my themes because the ASP.Net engine applies my stylesheets using relative paths.
So the page that executes a particular function is stored in a sub folder of my site like http://mydomain/workerpages/worker1.aspx
Visitors to my site navigate to all kinds of urls that don't actually exist thanks to my url re-writer like http://mydomain/sub1/sub2/sub3/view.aspx which then gets mapped to my worker1.aspx file.
Now because worker1.aspx is the page that is executed the ASP.Net engine applies my style sheet reference relative to that page like: src="../App_Themes/Theme1/stylesheet.css"
But my browser interprets that to mean http://mydomain/sub1/sub2/App_Themes/Theme1/stylesheet.css which is obviously wrong.
Is is possible to force the Themes engine to apply the stylesheet reference with an absolute link instead?
"There is no such thing as a bug, just an unexpected feature."