Can't change the border style of an Dropdownlist with C#?

P

Patrick

Hello,

I want to change the border of an asp-dropdownlist via C#.

With ddl.CssClass = "empty"; I want to change the border of the DDL to
red, but it works only in Firefox not in Internet Explorer.

Why not?

The according stylesheet looks like this:

font-family:Verdana, Arial, Helvetica, sans-serif;
overflow:auto;
color:#333333;
background-color:#FFFFFF;
border: #FF0000;
border-color: Red;
border-style:solid;
border-top-width:2px;
border-right-width:2px;
border-bottom-width:2px;
border-left-width:2px;

Thanx,
Patrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top