Neptune IT
asked on
ASP.net VB how to change radio button text color
I have a radio button list in ASP.NET using VB. Would like to change the font color of one of the list items. For instance, how do I make the text "Green Suggestion" to be the color green when it is rendered?
<asp:RadioButtonList ID="radioAct" runat="server" AutoPostBack="True"
RepeatDirection="Vertical" Width="609px">
<asp:ListItem Value="Environmental Issue<">Environmental Issue</asp:ListItem>
<asp:ListItem Value="General Safety">General Safety Suggestion</asp:ListItem>
<asp:ListItem Value="Green Suggestion">Green Suggestion</asp:ListItem>
<asp:ListItem Value="Near Miss/Accident">Near Miss/Accident</asp:ListIte m>
<asp:ListItem Value="Unsafe Act/Behavior">Unsafe Act/Behavior</asp:ListItem >
<asp:ListItem Value="Unsafe Condition">Unsafe Condition</asp:ListItem>
</asp:RadioButtonList>
<asp:RadioButtonList ID="radioAct" runat="server" AutoPostBack="True"
RepeatDirection="Vertical"
<asp:ListItem Value="Environmental Issue<">Environmental Issue</asp:ListItem>
<asp:ListItem Value="General Safety">General Safety Suggestion</asp:ListItem>
<asp:ListItem Value="Green Suggestion">Green Suggestion</asp:ListItem>
<asp:ListItem Value="Near Miss/Accident">Near Miss/Accident</asp:ListIte
<asp:ListItem Value="Unsafe Act/Behavior">Unsafe Act/Behavior</asp:ListItem
<asp:ListItem Value="Unsafe Condition">Unsafe Condition</asp:ListItem>
</asp:RadioButtonList>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<asp:ListItem Value="Green Suggestion"><span style="color: Green;">Green Suggestion</span></asp:Lis