我有以下 -
<asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Vertical" RepeatLayout="Table" CssClass="RBL" TextAlign="Right">
<asp:ListItem Text= "Individual - This is for user" />
<asp:ListItem Text="Enterprise - This is for enterprises" />
</asp:RadioButtonList>
我喜欢做的是强调Personal和Enterprise。
我尝试了类似以下的方法,但没有奏效:
<asp:ListItem Text= <span class="underline"> Individual </span>-....
正如我得到的:
Error 71 The 'Text' property of 'asp:ListItem' does not allow child objects.