DropDownlist items

Discussion in 'ASP .Net' started by Mariame, Aug 24, 2004.

  1. Mariame

    Mariame Guest

    Hi Everyone,
    i have a simple question: how can i make the dropdownlist appear only 3
    items at one with scroll & doesent extend all over the page if there is many
    items in it?

    Thx in advance
    Mariame, Aug 24, 2004
    #1
    1. Advertising

  2. ASP.Net is all about HTML. It generates HTML documents. An HTML form has
    HTML elements in it, all of which are defined by a set of standards, and all
    of which can only behave a certain pre-defined way. An HTML "select" object
    (drop-down list box) can be as many rows high as you want it to be. Just set
    the "size" attribute. However, the size of the select object when expand it
    is not configurable. It will expand to the number of items in the list.

    The only way to get the behavior you're describing is by using a client-side
    executable, such as an ActiveX control or Java applet.

    --
    HTH,
    Kevin Spencer
    ..Net Developer
    Microsoft MVP
    Big things are made up
    of lots of little things.

    "Mariame" <> wrote in message
    news:#DC9#...
    > Hi Everyone,
    > i have a simple question: how can i make the dropdownlist appear only 3
    > items at one with scroll & doesent extend all over the page if there is

    many
    > items in it?
    >
    > Thx in advance
    >
    >
    Kevin Spencer, Aug 24, 2004
    #2
    1. Advertising

  3. Mariame

    James Thomas Guest

    Kevin Spencer wrote:

    > ASP.Net is all about HTML. It generates HTML documents. An HTML form
    > has HTML elements in it, all of which are defined by a set of
    > standards, and all of which can only behave a certain pre-defined
    > way. An HTML "select" object (drop-down list box) can be as many rows
    > high as you want it to be. Just set the "size" attribute. However,
    > the size of the select object when expand it is not configurable. It
    > will expand to the number of items in the list.
    >
    > The only way to get the behavior you're describing is by using a
    > client-side executable, such as an ActiveX control or Java applet.


    Can't this be done by going into the html page and adding overflow:
    auto; to the style tag?

    James
    James Thomas, Aug 25, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gilles Kuhn
    Replies:
    0
    Views:
    436
    Gilles Kuhn
    Sep 15, 2003
  2. Bart Van Hemelen
    Replies:
    2
    Views:
    4,667
    Bart Van Hemelen
    Sep 4, 2006
  3. Larry Bud
    Replies:
    13
    Views:
    7,679
    Larry Bud
    Jan 7, 2008
  4. Ben
    Replies:
    2
    Views:
    883
  5. Anjan Bhowmik
    Replies:
    1
    Views:
    471
    Misbah Arefin
    Feb 14, 2008
Loading...

Share This Page