DropDownlist items

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mariame

    DropDownlist items

    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

    #2
    Re: DropDownlist items

    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" <Mariame_Waguih @yahoo.com> wrote in message
    news:#DC9#ydiEH A.1348@tk2msftn gp13.phx.gbl...[color=blue]
    > 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[/color]
    many[color=blue]
    > items in it?
    >
    > Thx in advance
    >
    >[/color]


    Comment

    • James Thomas

      #3
      Re: DropDownlist items

      Kevin Spencer wrote:
      [color=blue]
      > 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.[/color]

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

      James

      Comment

      Working...