Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > CssClass of TreeView Control

Thread Tools

CssClass of TreeView Control

Steve Norman
Posts: n/a
Hi All,

I'm trying to get the TreeView control to use a css class defined in an
external css file through the CssClass property rather than 'hard-coding' the
style in the DefaultStyle property, but the control appears to ignore the
CssClass property and just display the fonts in black Times New Roman? Has
anyone else had this problem, or can give me a working example?

The ASP HTML on the page is:
<iewc:treeview id="TreeView1" Width="200px" height="100%" ShowPlus="True"
BackColor="Transparent" BorderStyle="None" runat="Server"
cssclass="TreeControl"> </iewc:treeview>

And the style is defined as:
font-family:Verdana, Arial, Helvetica, sans-serif;

Microsoft.Web.UI.WebControls version is

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
A question of (web)control and CssClass kurt sune ASP .Net 1 01-17-2006 08:47 PM
CssClass and HTML file field control =?Utf-8?B?bXN1aw==?= ASP .Net 6 11-30-2004 09:41 AM
Set CssClass for DefaultStyle in Treeview control Jk ASP .Net Web Controls 0 05-21-2004 10:42 AM
Setting CSSClass property of Label control? Mervin Williams ASP .Net 1 04-06-2004 09:38 PM
How to remove CssClass of a control? Hardy Wang ASP .Net 1 11-13-2003 03:30 PM