If we apply style on drop down for maiking specific item bold,it will work in Firefox but not in IE.
So for overcome this problem,we should make that item to bold before binding it to dropdown.
var item = new ListItem("MyItem");
item.Attributes.Add("style", "font-weight: bold");
var list = FindControl("DropDownList1");
list.Items.Add(item);
No comments:
Post a Comment