I have a DropdownList ASP control, which is populating by DataSet.
I am using .net 3.5, c#.
To control the height of DropDownList, i am using the following code and it is working.
<asp:DropDownList size="1"
onMouseOver="this.size=10;"
onMouseOut="this.size=1;"
style="display:none; position:absolute; width:150px;"
runat="server"></asp:DropDownList>
But it is flickering when clicking on it, means first it shows all values and again resized for 10, provided length of the control.
Thanks
Yes, I got the correct answer.
Following code is working properly for me.
Using
position:absolute;andthis.size, i am able to manage the # of items (10 visible).