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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tusharposhiya
    New Member
    • Jun 2007
    • 7

    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
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Originally posted by tusharposhiya
    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

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      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.

      Comment

      Working...