What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 22541 |  Welcome, Guest!   Register  Login
 Home > Forums > C# > Dropdown font color in c#.net ...
Arun.Padmanaban

Dropdown font color in c#.net

Replies: 1 | Posted by: Arun.Padmanaban on 9/1/2012 | Category: C# Forums | Views: 520 | Status: [Member] | Points: 10  


HI all,
i am using dropdown list.in code behind i am inserting the data in dropdown item(0) "dropdown.items.insert(0,"select") .Inserts perfectly.Issue is i am adding color for the item(0) dropdown.items(0).attributes.add("style","color:gray") . the dropdown is highligted perfectly.But before expand of the dropdown the text "select" should display gray (working fine in IE but in other browser it's display black color,when we expand the dropdown i can see the grayed color item).


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Vasanthmvp
Vasanthmvp  
Posted on: 9/3/2012 6:58:19 AM
Level: Starter | Status: [Member] | Points: 25

Hi Arun,

yeah its working fine with IE. Good Observation.
As far as i know, this might be the issue with browser compatibility.

Regards,


Awesome Coding !! :)

Arun.Padmanaban, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/23/2013 8:15:41 AM