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!
Kirtan PatelPosted Aug 5, 2009, 10:38 AM
like below
Now Define like below In master page Section
Happy Coding :)
Patrick KayongoPosted Aug 5, 2009, 6:49 AM
Anna HawksPosted Aug 13, 2008, 11:29 AM
Anna HawksPosted Aug 1, 2008, 12:55 PM
Nipun TomarPosted Aug 1, 2008, 12:54 PM
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.