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

ccsclass property for text label on web form within VS.NET 2003

Dear Team,

I am trying to use stylesheets on a web form.

Initially, I created a folder named 'styles' within the WebUI project.

In this I created the following stylesheet named 'drivingschool.css':

body
{
font-size: 12px;
font-family: verdana, arial;
colour: #000000;
}
Then I placed a reference to this stylesheet within the HEAD section of the
web form as follows:

<LINK href="..styles/drivingschool.css" type="text/css" rel="stylesheet">

However, the rendering of the web form seemed to ignore the stylesheet.

Three questions:

1. Firstly, is my approach above correct?

2. If not what must be done to correct it?

3. I have also looked at the properties of one text label and noticed the
property 'CssClass'.

Does this have to be set also and if so, what should it be set to? I have
tried the help for this, but all it does it give an unrelated example.

Thanks,

Frodo.

Jul 21 '05 #1
2 2096
Hi Frodo,

Thanks for posting in the community.

From your description, I understand that you have problem to apply the css
to your webform,
Please correct me if there is any misunderstand.

Initially, I created a folder named 'styles' within the WebUI project. Then I placed a reference to this stylesheet within the HEAD section of the
web form as follows


If the web form file is in the same directory which the 'styles' folder
created in, please try the following relative path:
"styles/drivingschool.css"
Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Jul 21 '05 #2
Gary,

That worked fine.

Thank you.

Frodo.

"Gary Chang" <v-******@online.microsoft.com> wrote in message
news:RG**************@cpmsftngxa07.phx.gbl...
Hi Frodo,

Thanks for posting in the community.

From your description, I understand that you have problem to apply the css
to your webform,
Please correct me if there is any misunderstand.

Initially, I created a folder named 'styles' within the WebUI project.
Then I placed a reference to this stylesheet within the HEAD section of theweb form as follows


If the web form file is in the same directory which the 'styles' folder
created in, please try the following relative path:
"styles/drivingschool.css"
Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no

rights. --------------------

Jul 21 '05 #3

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

Similar topics

1
by: Harvey | last post by:
Hello: I am trying to use Autosize=true on a long string and it extends off of my form, rather than increasing the number of lines of the Label as the documentation says it should do. Would...
0
by: Colin | last post by:
Hi there, I really need your help on this. I'm trying to learn to using the VS.2003 to create a User Control. In my aspx code has no problem to use the property "grossWaye" that has "register" in...
8
by: critter | last post by:
I am trying to get a value of a property of a class, but not an instance of the class. Using Reflection, I can find the class in my assembly, and I can find the property of my class, however, I...
1
by: nospamjac | last post by:
Hi, Is there a way to update the text of an asp:label on a webform without refreshing the entire page? What is called by button clicks and other events that refresh a webform control? See the...
5
by: RSH | last post by:
I havent been able to set a property from another class with out getting some sort of error. Can someone please tell me what I'm doing wrong here? Public Class Form1
2
by: FrodoBaggins | last post by:
Dear Team, I am trying to use stylesheets on a web form. Initially, I created a folder named 'styles' within the WebUI project. In this I created the following stylesheet named...
1
by: SteveT | last post by:
Folks, I am reading/writing data within an XML file. In my form I have a label that is assigned to the UpdateDate field within the XML file. Within the form I update the label to a different...
0
missinglinq
by: missinglinq | last post by:
Having been asked, for the umpteenth time, how to use the MouseMove property to change the appearance of an object, I put together this short tutorial and sample database today. Perhaps it will be of...
10
by: Derek Hart | last post by:
I can set focus to my property grid by using propgrid.Focus - but how can I set the default property that is always first? Or just set focus to the default property? Can this be done?
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
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...
1
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.