473,327 Members | 2,118 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Regarding Drop down list. Need to set Max size

Hi,

I need to populate a dropdownlist control with values. Number of items for
that list exceeds 100.
I am using Html select list option.

When I drop down the list control, it shows the item list to the top of the
page or to the bottom of the page.
So I fixed the size of that control as 5. Now the size of the list has
increased to 5 & the list display size also becomes large in Length &
breadth.

My requirement is it should act as a list where the dropdopwn list should
get open when the drop down button is clicked. And after I selected a
choice, the list should be closed with displaying the selected item in the
listbox.

Is there any way to do this Or Is it possible using any controls?

The code in the program for dropdownlist control.

SELECT style="FONT-FAMILY: Verdana" id="SecurityDropDownList" size=5
runat="server"<OPTION>Select a Security Code</OPTION></SELECT>

--
Regards
Valli
Oct 31 '07 #1
1 7147
the size attribute of the <selectcontrols whether it is displayed as
list or a dropdown. there is no way to specify the size of the actual
dropdown list.

if you really need this feature then you will need a custom control
built from a textbox, image and floating div. there are several examples
of this on the web, and all have their drawbacks.

-- bruce (sqlwork.com)

Valli wrote:
Hi,

I need to populate a dropdownlist control with values. Number of items for
that list exceeds 100.
I am using Html select list option.

When I drop down the list control, it shows the item list to the top of the
page or to the bottom of the page.
So I fixed the size of that control as 5. Now the size of the list has
increased to 5 & the list display size also becomes large in Length &
breadth.

My requirement is it should act as a list where the dropdopwn list should
get open when the drop down button is clicked. And after I selected a
choice, the list should be closed with displaying the selected item in the
listbox.

Is there any way to do this Or Is it possible using any controls?

The code in the program for dropdownlist control.

SELECT style="FONT-FAMILY: Verdana" id="SecurityDropDownList" size=5
runat="server"<OPTION>Select a Security Code</OPTION></SELECT>
Oct 31 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Darren | last post by:
Please Help Me!! I've created a typical <form> and a <select> element. The options are created dynamically from my access database (using asp). There are about 70 options, and when you click...
4
by: Dan | last post by:
Can anyone offer suggestions on how to do this or if it is possible? I have a form that uses a drop down box and 2 text fields. What I am trying to do is have the value of each text box set by...
0
by: Derty | last post by:
Have an issue with a simple drop down list that I need to filter results of a database table and page display. I can get the drop down list to populate correctly but can't make the page databound...
4
by: zfareed | last post by:
I think I have been going at this all wrong. Let me state the rquirements: Write a function called listsize that takes a pointer to start of linked list and returns number of elements. Write a...
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
3
by: sarellaravi | last post by:
hi to everyone, just help me out to do this. On my page i have a dropdownlist control,which contain 80 items. when i select the dropdownlist.i am able to veiw 35 items of the list at single look....
0
by: mjohnson0321 | last post by:
I am trying to incorporate a CSS drop-down menu into a site (suckerfish menu). The menu gets lost behind the content below it, but only on one of the drop downs (News). The error occurs on all of...
30
ADezii
by: ADezii | last post by:
This week’s Tip of the Week will clearly demonstrate how you can dynamically set the Drop Down List Width of a Combo Box to the length of the longest item in its Row Source. The inspiration for this...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.