473,811 Members | 3,264 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using ForeColor in CSS for asp:treeview

I have an ASP:Treeview control

<asp:TreeView Id="TreeView2"
PathSeparator = "|"
OnTreeNodePopul ate="PopulateNo de"
ExpandDepth="1"
runat="server"
cssclass="TreeC ontrol"
ExpandImageUrl= "~/images/bullets/right.gif"
CollapseImageUr l="~/images/bullets/down.gif"
NoExpandImageUr l="~/images/bullets/right2.gif"
NodeStyle-HorizontalPaddi ng="5"
NodeIndent="10"
PopulateNodesFr omClient ="true"


I am trying to set the text color in my css style sheet - however it is
not working. The font-size attribute works, but not the color.

..TreeControl
{
color:Red;
Font-Size:0.9em;
}

If I set the forecolor property inside the <asp:TreeView > tag, then
the color works fine... however, I need to use the style sheet.

Can someone please let me know what I'm doing wrong?

Thanks very much in advance,

Damien Sawyer

Feb 5 '06 #1
0 2368

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

Similar topics

10
3326
by: Ed | last post by:
http://aspfaq.com/show.asp?id=2311 Sample: http://aspfaq.com/treeview This works perfectly on Windows IE 6.x and Mac IE. However, in order to be cross-platform compatible, I need to make this work on Mac Safari and Mozilla Firefox. Could someone point out how to fix this code to make it compatible with those aforementioned browsers?
1
2178
by: Srinivasa Raghavan | last post by:
Hi All, I have some doubts on the Treeview control and Form Authentication 1) will Form Authentication work if cookies are disabled. 2) I have problem in the following code (TreeView Control with checkbox)
1
2124
by: NagaKiran | last post by:
Hi I am able to display XML contents in a treeview. But I am unable to create an XML file using treeview data. I have a TreeView control wich contains many levels of data.I want create write an XML file using the data of treeview. How can this be done...
3
3277
by: musosdev | last post by:
Hi guys How do I get the new TreeView (asp2.0) to load something in an Iframe? I've setup a NaviagateUrl and set the Target property to the name of the Iframe, but it still tries to load a new window?! Cheers Dan
1
2059
by: itmanager | last post by:
We are using Microsoft's treeview.htc control to display a tree control in our .NET application. When displaying the tree, the browser returns the error: Dynamic Link Library (DLL) initialization routine failed pointing to the following line in treeview.htc: if(oItem.filters.length>0)
3
1510
by: Daves | last post by:
is there any documentation out there to find out if and then how I can work with TreeView on client side through jscript? For example I want to change title of nodes and remove without doing postback. MS doesn't seem to have any official documentation on this. And please notice I'm not refering to IE TreeView control but asp.net 2.0's TreeView!
0
3037
by: rockdale | last post by:
HI, I need to re populate my treeview control based on user's selection. Seems like there is no treeview.clear/ reset method. So I remove the rootnode from my treeview as following TreeNode n = tvSchedule.FindNode("-1"); if(n!=null){ myTreeView.Nodes.Remove(n); }
0
960
by: Zuhaib Hyder | last post by:
how to select asp:TreeView nodes through skin??? (not working) or tell me any other way, through css etc.... selected node not working
3
10096
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hi misters, "And the link to Microsoft's site on that blog says: "The following ASP.NET controls are not compatible with partial-page updates, and are therefore not supported inside an UpdatePanel control: TreeView and Menu controls. ....
0
9727
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10647
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10133
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9204
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7669
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5554
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4339
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.