473,387 Members | 1,517 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,387 software developers and data experts.

drop down list: size

Hi all,

i'm trying to define the number of items that are shown at a time on a
dropdownlist. Ideally i'd like to do this within the css class if possible.
How is this done??

This the control....
<asp:dropdownlist id="ddlRange"
runat="server"
autopostback="true"
cssclass="DropDownBox"
enableviewstate="True" >
</asp:dropdownlist>

Nov 19 '05 #1
4 5890
you populate the drop down list with the data that you want. What ever you
put in, you get out. To limit your list, don't insert the data. The drop
down list is not like a datagrid where you can do paging.

"Ian Oldbury" wrote:
Hi all,

i'm trying to define the number of items that are shown at a time on a
dropdownlist. Ideally i'd like to do this within the css class if possible.
How is this done??

This the control....
<asp:dropdownlist id="ddlRange"
runat="server"
autopostback="true"
cssclass="DropDownBox"
enableviewstate="True" >
</asp:dropdownlist>

Nov 19 '05 #2
ah that confuses me a little, as my understanding was that the dropdownlist
is the asp.net version of HTML form control. Which when setting the size
property would limit the number that could be seen at a time without using
the scrollbars.
"Tampa .NET Koder" <Ta***********@discussions.microsoft.com> wrote in
message news:13**********************************@microsof t.com...
you populate the drop down list with the data that you want. What ever you
put in, you get out. To limit your list, don't insert the data. The drop
down list is not like a datagrid where you can do paging.

"Ian Oldbury" wrote:
Hi all,

i'm trying to define the number of items that are shown at a time on a
dropdownlist. Ideally i'd like to do this within the css class if
possible.
How is this done??

This the control....
<asp:dropdownlist id="ddlRange"
runat="server"
autopostback="true"
cssclass="DropDownBox"
enableviewstate="True" >
</asp:dropdownlist>

Nov 19 '05 #3
Well there are dropdownlist and the Listbox..you may be confusing the two.
see here for a good explanation of the web server controls avaliable
http://www.w3schools.com/aspnet/aspn...ebcontrols.asp

"Ian Oldbury" wrote:
ah that confuses me a little, as my understanding was that the dropdownlist
is the asp.net version of HTML form control. Which when setting the size
property would limit the number that could be seen at a time without using
the scrollbars.
"Tampa .NET Koder" <Ta***********@discussions.microsoft.com> wrote in
message news:13**********************************@microsof t.com...
you populate the drop down list with the data that you want. What ever you
put in, you get out. To limit your list, don't insert the data. The drop
down list is not like a datagrid where you can do paging.

"Ian Oldbury" wrote:
Hi all,

i'm trying to define the number of items that are shown at a time on a
dropdownlist. Ideally i'd like to do this within the css class if
possible.
How is this done??

This the control....
<asp:dropdownlist id="ddlRange"
runat="server"
autopostback="true"
cssclass="DropDownBox"
enableviewstate="True" >
</asp:dropdownlist>


Nov 19 '05 #4
Are you wanting to know how large to make the DropDownList? All the items
would be there, but you want to control how many are "visible" at a time?

bill

"Ian Oldbury" <ian_oldbury@_NO_msn_SPAM_.com> wrote in message
news:eE**************@TK2MSFTNGP11.phx.gbl...
Hi all,

i'm trying to define the number of items that are shown at a time on a
dropdownlist. Ideally i'd like to do this within the css class if possible. How is this done??

This the control....
<asp:dropdownlist id="ddlRange"
runat="server"
autopostback="true"
cssclass="DropDownBox"
enableviewstate="True" >
</asp:dropdownlist>

Nov 19 '05 #5

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...
6
by: Adrienne | last post by:
http://www.intraproducts.com/beta/infinicall/index.asp has a drop down menu on Investor Relations. The markup and CSS are both valid, and most of the time, the menu drops down correctly. However,...
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...
2
by: SamSpade | last post by:
There seems to be two ways to put things on the clipboard ( I don't mean different formats): SetClipboardData and OleSetClipboard If I want to get data off the clipboard do I care how it was put...
3
by: Ajay Krishnan Thampi | last post by:
I have a slight problem implementing 'drag and drop' from a datagrid to a tree-view. I have pasted my code below. Someone please advice me on what to do...pretty blur right now. ==code== ...
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: 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...
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...
1
by: Valli | last post by:
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.