How to refelect CSS changes on screen at design time

D

Damien Sawyer

Hi,

I'm playing around with stylesheets in VS.NET 2003's HTML/Webform
editor.

I have two documents open, one my ASPX page, the other my CSS file.

When I make a change in the CSS file, it doesn't reflect in the ASPX
designer. I've tried saving the css, building the project, saving the
CSS and then re-openign the ASPX etc. I just can't get on top of it.

Can someone please point me in the right diretion? Maybe a link to a
primer on css in VS.NET?


Thanks in advance!


Damien Sawyer
 
K

Kyril Magnos

In order for CSS changes to show up in the designer, you have to make sure
that the <link rel="stylesheet" tag is pointing to a valid location in your
aspx page. It cannot point to a dynamic location. If you are dealing with an
ASCX or something that doesn't have a <link> tag, then you will not see the
CSS changes. I have also noticed that this is buggy behavior in VS.NET.
Sometimes it works, sometimes it doesn't. :-|

--
HTH

Kyril Magnos
"I'm not a developer anymore, I'm a software engineer now!" :)

| Hi,
|
| I'm playing around with stylesheets in VS.NET 2003's HTML/Webform
| editor.
|
| I have two documents open, one my ASPX page, the other my CSS file.
|
| When I make a change in the CSS file, it doesn't reflect in the ASPX
| designer. I've tried saving the css, building the project, saving the
| CSS and then re-openign the ASPX etc. I just can't get on top of it.
|
| Can someone please point me in the right diretion? Maybe a link to a
| primer on css in VS.NET?
|
|
| Thanks in advance!
|
|
| Damien Sawyer
 
D

Damien Sawyer

Thanks for that. Yes - when I run the page it works... however, I
can't believe that this is the only answer! Surely the designer is
supposed to provide a WYSIWYG experience! For example, when I
highlight text and hit 'bold' in the designer, it changes there and
then. When I edit HTML in the designer, the changes are reflected
immediately. The system parses the hypertext and renders it
immediately - that is the essence of WYSIWYG.

Frontpage has been doing what I'm asking for years... I would be very
disapointed if VS didn't follow suit...


Comments anyone?
 
D

Damien Sawyer

Kyril Magnos said:
In order for CSS changes to show up in the designer, you have to make sure
that the <link rel="stylesheet" tag is pointing to a valid location in your
aspx page. It cannot point to a dynamic location. If you are dealing with an
ASCX or something that doesn't have a <link> tag, then you will not see the
CSS changes. I have also noticed that this is buggy behavior in VS.NET.
Sometimes it works, sometimes it doesn't. :-|



Thanks Kyril - I think that we're both on the same page with this one.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top