DropDownlist items

M

Mariame

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
 
K

Kevin Spencer

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.
 
J

James Thomas

Kevin said:
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top