473,385 Members | 1,341 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,385 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 2101
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?
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?

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.