Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 19th, 2005, 09:15 AM
Registered User
 
Join Date: Jul 2005
Location: Gulfport, Mississippi, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default CSS and asp web ui labels

I am using web UI Labels to display all text on my
asp.net pages. Is there a way to apply a style sheet
format to these asp:label controls?
 
Old July 19th, 2005, 10:02 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I assume you mean ASP.NET labels? (This is a "classic" asp forum)

You can use the CssClass to add the CSS class, like this:

<asp:Label" id="lblTest" CssClass="MyClass" />

This will render in the browser as:

<span class="MyClass">

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old July 19th, 2005, 10:32 AM
Registered User
 
Join Date: Jul 2005
Location: Gulfport, Mississippi, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you Imar!




Similar Threads
Thread Thread Starter Forum Replies Last Post
No System.Web.UI alexanderH BOOK: ASP.NET Website Programming Problem-Design-Solution 2 March 10th, 2005 03:04 AM
namespace System.Web.UI henninga BOOK: ASP.NET Website Programming Problem-Design-Solution 9 November 16th, 2004 03:51 PM
Subclassing system.web.ui.page gazeth BOOK: ASP.NET Website Programming Problem-Design-Solution 2 May 25th, 2004 10:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.