473,413 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

vs2005 b2 prob - CSS just stopped working!

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
Nov 19 '05 #1
4 1163
dhnriverside wrote:
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/

Nov 19 '05 #2
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....!

"Jason Kester" wrote:
dhnriverside wrote:
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/

Nov 19 '05 #3
"Jason Kester" <ja*********@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
dhnriverside wrote:
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.


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 :)
Nov 19 '05 #4
interesting... can i do that just by putting css in the appthemes directory?
or is there something else you have to do?

"Danny Tuppeny" wrote:
"Jason Kester" <ja*********@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
dhnriverside wrote:
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.


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 :)

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Tim | last post by:
Hi A custom ASP web application that i have developed has stopped working after the install of WinXP SP2. The application breaks on: Set oMaint =...
9
by: Jeff Gaines | last post by:
I have just installed VS 2005 (MSDN version) and I am having problems coping files to the Projects folder while VS2005 is running. The projects folder is on a network share and I have used...
0
by: Alan Silver | last post by:
Hello, I have been working on a site in VS2005, and have noticed that the autocomplete has stopped working for asp controls. If I type... <a in an .aspx file, then I get a list of possible...
15
by: Joseph Geretz | last post by:
OK, I'll admit it up front - I just don't get it. Here's our previous VS2003 development model. Developers develop the WS solution on their own workstations, using their own IIS web servers...
8
by: MLH | last post by:
I'm using Albert Kallall's code to set printers in A97. I find that on some machines, the code locks up and on others, it does not. I would like to overcome this and was wondering about the...
7
by: AlanJSmith | last post by:
I am converting some C++ projects from 6 to vs2005 in one of the headers i have the code that follows this passage in which I get an error saying int default cant be assumed so i added...
2
by: K B | last post by:
I'm sorry to post OT here but I was hoping that someone could help me. I use Visual Studio 2005 and suddenly my Find feature has completely stopped working. When I select it, the screen flickers...
8
by: =?Utf-8?B?UGV0ZXJX?= | last post by:
I install Visual Studio 2005 Pro on Vista. I open and migrate a 2003 web project to 2005. I attempt to browse an aspx file from the Solution Exploer. It displays a blank html page. I create a...
4
by: Charlie Bear | last post by:
hi, i'm running visual studio 2005 working on asp.net projects. Suddenly visual studio has stopped automatically adding controls to the designer code behind. anyone know why or how to fix it? i...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.