|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DropDownList skin - assign BorderColorGood 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 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 Show quoteHide quote "Erik" <E***@discussions.microsoft.com> ha scritto nel messaggio news:AF0B35E0-323E-4C42-9D43-691B65C07383@microsoft.com... > 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 Thank you for the response. Is it possible to define a custom control
dropdownlist with updated borders, or will IE not allow this either? Show quoteHide quote "Alessandro Zifiglio" wrote: > 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 > > "Erik" <E***@discussions.microsoft.com> ha scritto nel messaggio > news:AF0B35E0-323E-4C42-9D43-691B65C07383@microsoft.com... > > 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 > > > 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 Show quoteHide quote "Erik" <E***@discussions.microsoft.com> ha scritto nel messaggio news:989AA3FB-026F-48A9-A73F-6A76A235B9D6@microsoft.com... > Thank you for the response. Is it possible to define a custom control > dropdownlist with updated borders, or will IE not allow this either? > > "Alessandro Zifiglio" wrote: > >> 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 >> >> "Erik" <E***@discussions.microsoft.com> ha scritto nel messaggio >> news:AF0B35E0-323E-4C42-9D43-691B65C07383@microsoft.com... >> > 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 >> >> >>
Stopping Attributes.Add from converting my JavaScript event code to HTML
disable an ascx entirely in my web page GridViewRow FindControl failing GridView ScrollBar format text in dropdownlist Allowing entry of a Carriage Return during data entry Stop Postback in image button Page with User control loads twice. sumbit server form to another page Rename ID in Properties Window |
|||||||||||||||||||||||