473,320 Members | 1,990 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,320 software developers and data experts.

How to refelect CSS changes on screen at design time

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
Nov 18 '05 #1
3 1251
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!" :-)

"Damien Sawyer" <da**********@yahoo.com.au> wrote in message
news:d8**************************@posting.google.c om...
| 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
Nov 18 '05 #2
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?

-----------------------
Reza Solouki <Re*********@discussions.microsoft.com> wrote in message news:<A8**********************************@microso ft.com>...
For one thing, I don't think you will see it in design mode, since the pages are comopiled and will show when you run it.

Do a test, run the page and open the source while running, see if the property (class or the specific properties you are trying to change) is set with the right properties.

Nov 18 '05 #3
"Kyril Magnos" <ky**********@yahoo.com> wrote in message news:<#3**************@tk2msftngp13.phx.gbl>...
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


Thanks Kyril - I think that we're both on the same page with this one.
Nov 18 '05 #4

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

Similar topics

23
by: Dufe | last post by:
Hello all: To deal with the problem of differing user screen resolutions, I've explored: 1) making the pages in PHP, 2) having different pages on the same page and selecting the proper one via...
2
by: MSE | last post by:
How can I make a website that adapts to the screen resolution? I would also like to include a picture that stretches when the screen res. increases, if you know what I mean.
4
by: Job Lot | last post by:
I have implemented DashStyle and LineThickness for custom circle control as follows: Public Property DashStyle() As DashStyle Get Return m_DashStyle End Get Set(ByVal Value As DashStyle)...
3
by: Jeremy Smith | last post by:
I have a Access 2K2 db that is used on the network. I have a main form that dependant upon the selected option loads the appropriate subform. when it does this several label captions change to...
3
by: Liam.M | last post by:
Hey guys, I was wonder if anyone could suggest any solution to this problem.....I have now spent roughly about 2-3 days styling my database/ "dressing it up" HOWEVER, the PC I have been using is...
3
by: tom c | last post by:
In ASP.Net 1.1, I have a datagrid on a form. The height of the grid can vary with the number of rows loaded into it. I want a label to appear just below the datagrid. I need the position of the...
3
by: meeraguna | last post by:
We have 20 -30 normalized tables in our dartabase . Also we have 4 tables where we store the calculated data fron those normalised tables. The Reason we have these 4 denormalised tables is when we...
4
by: Mark Olbert | last post by:
I've written a composite custom control which I would like to have update its design-time display when one of several properties changes at design time. These custom properties are not simply the...
4
by: ARC | last post by:
Hello all, I didn't use to have this problem in Access 97, but in 2007 (and maybe other versions of access after 97), if you have a form that has a subform, and you click the close button, you...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.