Click here to Skip to main content
15,902,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
there are more than 100 list items in dropdown if user selects one item in the drop down list item then i have to show appropriate image.How it is possible
Posted
Comments
Sandeep Mewara 2-May-12 2:47am    
And what is the issue? Where are you stuck?

You can use the selectedindexchanged event and write the code to show images....

Regards
Sebastian
 
Share this answer
 
Comments
deepureddy18 2-May-12 1:02am    
ya offcourse we will write the code with in the selected indexed changed event.Inside code logic.using if loops means code will be very length . how it will be is there any option .
You must have kept them in a database.
Then write a query to select that image inside selectedindexchanged event.

eg: "select image from img_table where img_id = "+ dropdown.selectedvalue;
And keep image in datareader.

Then use your method to display that image.
 
Share this answer
 
v2
Comments
MuhtarQong 2-May-12 19:01pm    
You may open your images in a ThumbnailViewer. Inside SelectedIndexChanged event of the ThumbnailViewer you may write open image code. There is a solution for this:
http://artuxsoft.com/download.aspx

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