Solved

Drop Down List of Images

Posted on 2008-10-27
4
1,666 Views
Last Modified: 2012-08-14
I am trying to create a drop down list to be used in a C# Web application.  Similiar to choosing a state from a drop down, but instead of text, a small image would appear?  Does anyone know how to do this?

Thanks,

Jared
0
Comment
Question by:jaredrico
4 Comments
 
LVL 8

Expert Comment

by:Wikkard
ID: 22818347
This isnt really possible in a web app afaik.
You could create your own user control to work like a dropdown with images.

0
 

Author Comment

by:jaredrico
ID: 22818401
what do you mean?  not use the drop down list control, then?
0
 
LVL 8

Expert Comment

by:mkosbie
ID: 22819054
A DropDownList control can only be used for text.  You would need to create a special user control to do this.  I would base it on an image drop down menu (like the one here: http://www.cssplay.co.uk/menus/image_dropdown.html).  Info on user controls: http://msdn.microsoft.com/en-us/library/y6wb1a0e.aspx
0
 
LVL 2

Accepted Solution

by:
smokingspaceman earned 500 total points
ID: 22820029
This is part of a commercial component packege that does what you want.
http://demos.telerik.com/ASPNET/Prometheus/Combobox/Examples/Default/DefaultCS.aspx

I'm sure you can do something similar using dhtml.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question