Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DropDownlist items

Reply
Thread Tools

DropDownlist items

 
 
Mariame
Guest
Posts: n/a
 
      08-24-2004
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


 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      08-24-2004
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" <(E-Mail Removed)> wrote in message
news:#DC9#(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
 
James Thomas
Guest
Posts: n/a
 
      08-24-2004
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Menu Items and Child Menu Items Larry Bud ASP .Net 13 01-07-2008 02:12 PM
Recognising Sub-Items and sub-sub items using xslt Ben XML 2 09-19-2007 09:35 AM
Looping through CheckBoxList items doesn't pick up selected ones when items were disabled Bart Van Hemelen ASP .Net 2 09-04-2006 08:35 AM
Items in Outbox not moving to Sent Items Ben Lord Computer Support 0 10-23-2003 08:47 AM
grouping items among a list according to items subtag value Gilles Kuhn XML 0 09-15-2003 12:01 PM



Advertisments