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 / Web Controls / July 2006

Tip: Looking for answers? Try searching our database.

DropDownList skin - assign BorderColor

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Erik - 27 Jul 2006 17:25 GMT
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
Alessandro Zifiglio - 27 Jul 2006 20:22 GMT
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

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.