Click here to Skip to main content
15,917,590 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to dispaly image before the data in the dropdown based on the category of the value. Is it possible to do?
Posted

Yes, but not with a drop down. You'd have to create your own control, a scrolling div that gets shown to show the images. You may be able to use a repeater to generate it, or you may have to write all the code, including databinding.
 
Share this answer
 
You don't need to reinvent the wheel there are lots of jQuery/java plugins already available for this.


You can check following jQuery plugins

http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/jquery-image-dropdown-2.1/index.html[^]



http://plugins.jquery.com/project/image-combobox[^]
 
Share this answer
 
v2
i already saw this plugin. I am having the data in the dataset. based on the data's category i need to display the image. is it possible. the dropdown can be any no, based on the selection of the previous dropdown.
 
Share this answer
 
Comments
Christian Graus 18-Aug-10 2:00am    
Don't push answer to ask questions. Isn't htat obvious ? Yes, it's possible to do it using any of the existing stuff. You need to write code to do that. I think what you mean is 'what is the code', and, you need to write that for yourself.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900