471,577 Members | 1,654 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

How to add Image in DropDownList (Asp.net with C#)

Hi....

Hello Friend's

I have some difficulty is that DropDownList

How to Add Image in DropDownList

plz reply as possible as with e.g.

thx,

Regarding,

Tushar Poshiya
Jun 18 '07 #1
2 16185
Frinavale
9,735 Expert Mod 8TB
Hi....

Hello Friend's

I have some difficulty is that DropDownList

How to Add Image in DropDownList

plz reply as possible as with e.g.

thx,

Regarding,

Tushar Poshiya

I don't think that dropDownLists support images.
Just like HTML <select> lists don't support images.

Sorry,

-Frinny
Jun 18 '07 #2
Plater
7,872 Expert 4TB
If this is a webpage and you REALLY want a drop downlist with images, you could simulate it with javascript and CSS

design a div with a z-index above your regular page. Set the display type to invisible. Give it a static size and tell it to overflow:auto in the css.
Then you can add a table to the DIV with images and items and hyperlinks and whatever.
You then make a generic hyperlink on your page that causes that hidden div to display when it gets clicked on. Mimic-ing the behavior of a drop down list.
Jun 18 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Brett Baisley | last post: by
2 posts views Thread by Shiju Poyilil | last post: by
1 post views Thread by m3ckon | last post: by
6 posts views Thread by Chris Fink | last post: by
4 posts views Thread by Denise | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by Vinnie | last post: by
1 post views Thread by lumer26 | last post: by

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.