Is there a way to change the background colors of dropdownlists in my C# web app using CSS instead of specifying each one individually?
In simpler terms, I'm trying to avoid having to write out code like this for multiple dropdowns:
private void Form_Load(object sender, EventArgs e)
{
comboBox1.BackColor = Color.Aqua;
comboBox2.BackColor = Color.Aqua;
comboBox3.BackColor = Color.Aqua;
etc
.
.
.
}