Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

Regarding Drop down list. Need to set Max size

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Valli - 31 Oct 2007 14:29 GMT
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>

Signature

Regards
Valli

bruce barker - 31 Oct 2007 16:48 GMT
the size attribute of the <select> controls 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)

> Hi,
>
[quoted text clipped - 19 lines]
> SELECT style="FONT-FAMILY: Verdana" id="SecurityDropDownList" size=5
> runat="server"> <OPTION>Select a Security Code</OPTION></SELECT>

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.