hi Eric, you cant get it to work because its not supported in IE, and as for
firefox and opera, they set the border around the dropdownlist in collapse
state, while the border is ignored on the dropdown itself.
you can make a simple test yourself and verify this =P
<asp:DropDownList style="border:5px solid green" ID="DropDownList1"
runat="server">
<asp:ListItem>i am an apple</asp:ListItem>
<asp:ListItem>i am an orange</asp:ListItem>
<asp:ListItem>i am a banana</asp:ListItem>
<asp:ListItem>i like fruits!</asp:ListItem>
</asp:DropDownList>
Regards,
Alessandro Zifiglio
http://www.AsyncUI.net
> Good Morning,
> I am trying to assign the BorderColor for a DropDownList in a skin. I
> can't
> get anything to work. If anyone has some insight or code on how to assign
> DropDownList.BorderColor in a skin, I would greatly appreciate it.
> Thanks, Erik
Erik - 27 Jul 2006 20:46 GMT
Thank you for the response. Is it possible to define a custom control
dropdownlist with updated borders, or will IE not allow this either?
> hi Eric, you cant get it to work because its not supported in IE, and as for
> firefox and opera, they set the border around the dropdownlist in collapse
[quoted text clipped - 20 lines]
> > DropDownList.BorderColor in a skin, I would greatly appreciate it.
> > Thanks, Erik
Alessandro Zifiglio - 28 Jul 2006 08:32 GMT
your welcome, Erik. IE does not support borders on the select element,
period =P
The dropdownlist control renders an HTML select element.
If the border is so important to you, then you can go for a third party
component which is not a standard select element, but a combination of other
elements to mimic a dropdownlist but with addition of the borders you seek,
adding images on the items, highligthing on mouseover etc.
This one seems to be free :
http://www.codeproject.com/aspnet/ComboAdjustDropDownWidth.asp
You can look for something more advanced and nice for a cost like this one :
http://www.telerik.com/default.aspx?pageid=2423
keep searching online.
Regards,
Alessandro Zifiglio
http://www.AsyncUI.net
> Thank you for the response. Is it possible to define a custom control
> dropdownlist with updated borders, or will IE not allow this either?
[quoted text clipped - 26 lines]
>> > DropDownList.BorderColor in a skin, I would greatly appreciate it.
>> > Thanks, Erik