Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - DropDownlist items

 
Thread Tools Search this Thread
Old 08-24-2004, 02:16 PM   #1
Default 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




Mariame
  Reply With Quote
Old 08-24-2004, 03:29 PM   #2
Kevin Spencer
 
Posts: n/a
Default 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" <> 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
  Reply With Quote
Old 08-25-2004, 12:31 AM   #3
James Thomas
 
Posts: n/a
Default Re: DropDownlist items
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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Memorabilia rare items The Carpenters Karen Carpenter JJP DVD Video 1 11-20-2007 01:13 PM
dynamic validations for checkboxlist and dropdownlist mrugesh_dulera Software 0 06-26-2007 01:56 AM
DropdownList in gridview visj4u Software 0 04-27-2007 01:11 PM
Done After 9 Years of Selling on EBay gojody DVD Video 5 03-27-2007 04:17 PM
AUCTION: Many Rare Items - incl. DVDs. NO RESERVES! All End Soon! UniqueGuyinPgh DVD Video 0 08-07-2003 11:57 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46