473,394 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Multi Color DropDownList

Hi!!

I'd like to dessing a DropDownList with 20 colors different among them
and I don't want to appear the name of the color, only the color. The
20 color i'll take from a DatabBase, and on the value of the
DropDownList will be an Hexadecilmal number taken from the DatabBase.
How can I change the "style=background-color" for each Items.

Thaks All
Nov 22 '05 #1
5 2918
To the best of my knowledge, you will need to do an owner-drawn list to
achieve the desired results.

Richard Rosenheim
"David" <da**********@gmail.com> wrote in message
news:55**************************@posting.google.c om...
Hi!!

I'd like to dessing a DropDownList with 20 colors different among them
and I don't want to appear the name of the color, only the color. The
20 color i'll take from a DatabBase, and on the value of the
DropDownList will be an Hexadecilmal number taken from the DatabBase.
How can I change the "style=background-color" for each Items.

Thaks All

Nov 22 '05 #2
To the best of my knowledge, you will need to do an owner-drawn list to
achieve the desired results.

Richard Rosenheim
"David" <da**********@gmail.com> wrote in message
news:55**************************@posting.google.c om...
Hi!!

I'd like to dessing a DropDownList with 20 colors different among them
and I don't want to appear the name of the color, only the color. The
20 color i'll take from a DatabBase, and on the value of the
DropDownList will be an Hexadecilmal number taken from the DatabBase.
How can I change the "style=background-color" for each Items.

Thaks All

Nov 22 '05 #3
VK
Or create a field in the database and store the color name and display
accordingly on web site.

Kinda expensive idea since you would have store this information in db.

Thanks.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 22 '05 #4
VK
Or create a field in the database and store the color name and display
accordingly on web site.

Kinda expensive idea since you would have store this information in db.

Thanks.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 22 '05 #5
I used the concept this guy wrote:

http://weblogs.asp.net/fmarguerie/ar...2/27/3103.aspx

Nov 22 '05 #6

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

Similar topics

3
by: David | last post by:
Hi!! I'd like to dessing a DropDownList with 20 colors different among them and I don't want to appear the name of the color, only the color. The 20 color i'll take from a DatabBase, and on the...
3
by: Brian Henry | last post by:
I have two list boxes on my form... lstCanSend and lstRecipients... well then there are two buttons add and remove between them (your basic select and pick listing) which uses java script to move...
5
by: Luis Fajardo | last post by:
I'm expiriencing a basic HTML appearance problem with ASP.NET. Following a couple of sample tags to ilustrate my problem: <asp:TextBox id="txtWidthIssue" runat="server"...
17
by: Aussie Rules | last post by:
Hi, I want to have a single line combo box dropdown, but where i can selected multiple items in the drop down via a check box... I can see one in the standard tool box... is there one ? If...
1
by: Mike P | last post by:
Can anybody recommend a free multi-column dropdownlist control? Thanks, Mike *** Sent via Developersdex http://www.developersdex.com ***
7
by: =?Utf-8?B?UmVraGE=?= | last post by:
Hi, I am trying to change the font color for the items in a dropdownlist control at run time using ASP.NET 2.0. DropDownList1.Items.Attributes.Add("style", "color:red"); But when I run the...
1
by: MaryamSh | last post by:
Hi, I am creating a Dynamic Search in my application. I create a user control and in Page_load event I create a dynamic dropdownlist and 2 dynamic button (Add,Remove) By pressing Add button...
0
by: MaryamSh | last post by:
Create Dynamic Dropdownlist Controls and related event -------------------------------------------------------------------------------- Hi, I am creating a Dynamic Search in my application. I...
0
by: Bogdan | last post by:
Hi, I'd like to have a page with DropDownList, GridView, FormView, and a list of label/value pairs. The GridView records will be filtered out on the selected value in the DropDownList. The...
0
by: asmx126453 | last post by:
Hey mensen I am having some big troubles here i tryd solving it myself with internet for 2 days but i kind fix it. Its about this i have a DotNet project that alrydi is online and working for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.