Display different colors in Drop down list box

Posted by Gayathri under ASP.NET on 10/28/2009 | Views : 8218 | Status : [Member] | Replies : 5
I am working on a stationary / computer jobs application.

This application has a drop down list box which displays different center names in different colors so as to help the operator to fix priority in their printing work.

for example standard red ,green ,black and blue are the colors in which the center names should be displayed .

need help on this script.

Thanks
Note: this is being worked in asp.net 2.0 with javascript and sql server 2000




Responses

Posted by: Poster on: 10/28/2009 [Member] Starter

Up
0
Down
Look at this link http://pietschsoft.com/post/2004/09/Color-the-background-of-items-in-a-Dropdown-box-in-your-HTML-pages.aspx for your solution.

Thank

Gayathri, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 10/28/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Day Gayathri

This has been posted before , here is an Answer in this post .

http://www.dotnetfunda.com/forums/thread715-colors-in-dropdown-list.aspx


Thank you posting at Dotnetfunda

Vuyiswa Maseko


Thank you for posting at Dotnetfunda
[Administrator]

Gayathri, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gayathri on: 10/28/2009 [Member] Starter

Up
0
Down
That was fabulous. Thanks for your reply.
I am able to understand but a small doubt., can i set this as foreground color instead of background color in the style attribute.

since i am mailing from home i do not have a chance to work it out

Please clarify.


Thanks .

Gayathri, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 10/28/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
yes you can use a forecolor property.

Thank you for posting at dotnefunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Gayathri, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Neet_aarzoo on: 11/5/2009 [Member] Starter

Up
0
Down
Refer this link you will get full code dear.

http://www.dotnetspider.com/resources/32844-Example-themes-skins.aspx

regards
Neetu

Gayathri, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response