My ListBox on aspx page is as follows:-
<asp:ListBox ID="ddlItems" runat="server" Style="padding: 2px; width: 210px; height:200px;">
</asp:ListBox>
I am adding BackGround Image to my List items as
follows in code behind and its working perfectly:-
myListItem.Attributes.Add("style", "background-image:url(" + "'www.mysite.com/" +
"images/Gradient/" + ds.Tables[0].Rows[iGroups]
["Backgroundimage"].ToString() + "');");
Now I have tried many things but I cant get to make
the list items' font bold and White in color. Also
how can I increase the height of these list items
and hence the font size?
I have tried the following but its' not working:-
myListItem.Attributes.Add("ForeColor", "White");
myListItem.Attributes.Add("style", "font-weight:bold");