Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2005

Tip: Looking for answers? Try searching our database.

vs2005 b2 prob - CSS just stopped working!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dhnriverside - 29 Oct 2005 23:53 GMT
Hi guys

I've just started having a play with VS2005 again ready for the switchover.
I created a master page, and a content page - all fine.

I then created a CSS file and linked it to my master page by just dragging
across into the code window. WOrked perfectly. I carried on making tweaks,
and adding various things, and the all of a sudden when I went to "View in
Browser" - no CSS! At all. The link is there if I view source on the web
page, but nothing shows.

I've changed the CSS, ive taken the link out, added it back, created another
CSS. I can't get anything to show.

What's going on?!!?

Cheers

Dan
Jason Kester - 30 Oct 2005 03:36 GMT
> I then created a CSS file and linked it to my master page by just dragging
> across into the code window.

Yeah, quit doing that.  Write your code by hand and you won't have to
rely on anything being automagically hooked up.  You'll also never have
to panic when the magic stops working.

- View source.
- Copy out the full url for the .css include.
- Paste it into a browser window.
- Note that it comes back 404.
- Figure out where the file actually lives on your server
- Hook it back up by hand.
- Never "Drag" anything onto a page again.

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

---
Get your own Travel Blog, with itinerary maps and photos!
http://www.blogabond.com/
dhnriverside - 30 Oct 2005 09:20 GMT
heh, switched on this morning and everything works fine :)

thanks though. tell u what ill b major peeved if vs2k5 starts doing the
random delete of code and odd stuff. i complained like hell to ms and they
just said "yeah, it'll be fixed in 2k5, stop using the designer." - not what
u want when youve just spent 400quid....!

> > I then created a CSS file and linked it to my master page by just dragging
> > across into the code window.
[quoted text clipped - 18 lines]
> Get your own Travel Blog, with itinerary maps and photos!
> http://www.blogabond.com/
Danny Tuppeny - 30 Oct 2005 10:08 GMT
>> I then created a CSS file and linked it to my master page by just
>> dragging
[quoted text clipped - 3 lines]
> rely on anything being automagically hooked up.  You'll also never have
> to panic when the magic stops working.

LOL!!

Should we quit dragging buttons from the toolbox and double-clicking them to
add even handlers too? ;o)

The magic is there - use it! :-)

> - Figure out where the file actually lives on your server
> - Hook it back up by hand.
> - Never "Drag" anything onto a page again.

You can also put CSS files in an App_Themes/[ThemeName] folder, and they're
automagically added to the headers of all pages. You can set which theme is
used in web.config, and even let the user change it on the fly :)
dhnriverside - 30 Oct 2005 16:20 GMT
interesting... can i do that just by putting css in the appthemes directory?
or is there something else you have to do?

> >> I then created a CSS file and linked it to my master page by just
> >> dragging
[quoted text clipped - 18 lines]
> automagically added to the headers of all pages. You can set which theme is
> used in web.config, and even let the user change it on the fly :)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.