Hello Chris,
When I go into debug mode and the web page I am working on opens in
the browser via the local Cassini Web Server I get a path appended
onto the full path e.g.
localhost:7859/FolderName/filename_that_should_be_in_the_root.aspx
this is a pain as I do my links from the root e.g. /css/site.css and
the additional folder in the path stops that. Is there any way to get
the site in debug mode to show
localhost:7859/filename_that_should_be_in_the_root.aspx
Regards, Chris.
Because you'll never know the deployment url might change you need to write
your code agnostig of the deployment location.
If you have urls in controls (NavigateToUrl, PostBackUrl, ImageUrl etc) you
can use the ~/ notation to specify the application root.
The same goes for certain urls in the head section of a website (stylesheet
links are among those I believe).
You can also put your css files in a theme (put them in a folder called App_Themes\ThemeName)
and set the theme in the Pages tag of the web.config. All pages will automatically
load all css files in the specified themes directory. Should you ever need
to change the look & feel of the pages you can just change teh contents of
the theme directory and all pages will automatically load then new stylesheets.
Jesse