Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Assign CssClass and Read Styles

Thread Tools

Assign CssClass and Read Styles

Shane Walters
Posts: n/a
Is it possible to programmatically read the styles applied to a control from
a CssClass assignment? My idea is straight forward, but I've looked at
ControlStyle, Style, and individual properties (such as Control.Font.Bold),
but to no avail. Is there a class that can parse CSS input (file, inline,
anything CSS)?

myControl.CssClass = "MyCssClass";
x = myControl.Style["font-weight"];
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to read CSS styles - problem Tony Javascript 2 12-15-2005 12:51 AM
Problem using Webpartzone and CssClass =?Utf-8?B?Y2hyaXNmb3g=?= ASP .Net 1 11-18-2005 11:47 PM
Assign CssClass to RadionButonList Hardy Wang ASP .Net 0 01-20-2005 03:53 PM
CssClass and HTML file field control =?Utf-8?B?bXN1aw==?= ASP .Net 6 11-30-2004 09:41 AM
DataGrid.AllowSorting and CssClass =?Utf-8?B?a2g=?= ASP .Net 3 08-02-2004 11:33 PM