Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there

How to change the border color of the dropdown list in ASP.NET 2.0?

Thank You
Posted
Updated 12-Jul-10 19:43pm
v2

1 solution

The border-color style works in Firefox but not IE.

I would consinder enclosing that dropdownlist block within a div block and setting the border property like so:

XML
<div style="border:1px solid red;width:250px">
    <asp:DropDownList ID="DropDownList1" runat="server" Width="100%">
    </asp:DropDownList>
    </div>
 
Share this answer
 
Comments
aswathy.s.88 13-Jul-10 7:07am    
Hmmm...yes....there is no property to set the border color other that place it in a div...even that case also the "arrow" present for selection will remain in the blue color...
raju melveetilpurayil 28-Jul-10 17:08pm    
you can add style tag to DropDownList. it also works

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900