I have a web project converted from .NET1.0/VS 2003 to .NET2.0/VS 2005. Among other conversions, I added MasterPages and style sheets. There are a couple of problems I'm having:
- When I am debugging, the styles defined in the Style Sheets are not appearing on the screen. They show in the designer, but when I debug (OR look at it in the browser), they're gone. Doesn't change.
- From time to time (oh, goody! An intermittent problem!), it will lose an image button or image. I select them using the URL finder, and sometimes they show, sometimes it takes several tries to get them to show up.But inevitably, one or two are gone during debug.
Any help is appreciated, because I'm stumped!

Nipun TomarRank #90 · 23K reputationPosted Aug 1, 2008, 8:54 AM EDT
Instead of using the relative path, try using "~" for stylesheets in master page
I mean in place of
<
link type="text/css" href="../App_Themes/StyleSheet.css" rel="stylesheet" />use
<
link type="text/css" href="~/App_Themes/StyleSheet.css" rel="stylesheet" />hope this helps.
Anna Hawks102 reputationPosted Aug 1, 2008, 8:55 AM EDT
Anna Hawks102 reputationPosted Aug 13, 2008, 7:29 AM EDT
Patrick Kayongo2 reputationPosted Aug 5, 2009, 2:49 AM EDT
Kirtan PatelRank #292 · 8.6K reputationPosted Aug 5, 2009, 6:38 AM EDT
like below
Now Define like below In master page Section
Happy Coding :)