How to add images to dropdown server control

  • Thread starter Thread starter Guest
  • Start date Start date
Yuriy said:
I need to add images to dropdown sc.

The standard <SELECT> HTML element does not support this. Folks have
used CSS techniques as workarounds, though. There are some commercial
ASP.NET components that allow for this, doing all the heavy lifting for
you. For example, EasyListBox can have images in the DropDownList as
this demo illustrates:
http://easylistbox.com/demoCustomized.aspx

(One disadvantage of EasyListBox is that its "cool" features - images,
multi-column support, etc. - only work in IE and not Mozilla FireFox (my
browser of choice).)

There are some other enhanced DropDownLists at the Control Gallery:
http://asp.net/ControlGallery/default.aspx?Category=9&tabindex=2

hth

--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com

* When you think ASP.NET, think 4GuysFromRolla.com!
 
Back
Top