views:

614

answers:

2

I want to know how to set the height property for the HTML Select in code. Tried setting the .Attribute.Add("Style","Height:120px") just to see if I could get it to change but to no avail.

A: 

Style is already a Property...

DropDownList myDropDown;
myDropDown.Style["height"] = "120px";
Jimmy
+1  A: 

Better yet, give it a CssClass. :)

mannu