Thanks Jon,
I put this in the Page_Load block and the BackColor prop was changed but the
BorderStyle prop remains in the default setting. No matter what I put here,
the BorderStyle remains the same.
foreach (Control ctl in this.Controls)
{
if (ctl is DropDownList)
{
DropDownList cb = null;
cb = ctl as DropDownList;
cb.BackColor = System.Drawing.Color.FromName("Blue");
cb.BorderStyle = (BorderStyle)Enum.Parse(typeof(BorderStyle),"Dotte d");
}
}
Thanks for any further ideas.
Steve
"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot comwrote in message
news:up**************@TK2MSFTNGP02.phx.gbl...
http://msdn2.microsoft.com/en-us/lib...rderstyle.aspx
"Uriah Piddle" <st*************@msn.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>Hi Gang,
In VS 2005, I can't get an ASP DropDownList to take a BorderStyle
property. I've tried both with a skin id and inline. No matter what style
I apply, it comes up with the default style. I specified 'Dotted' and
nothing dotted happens. In Firefox, its the same except the border is
very heavy black instead of indented and does not change when I apply a
different style.
Thanks.
Steve