no text is displayed. Below is my code:
<td style="width: 100px"><asp:RadioButtonList ID="RadioButtonList16"
runat="server" RepeatDirection="Horizontal">
<asp:ListItem Value="1"></asp:ListItem>
<asp:ListItem Value="2"></asp:ListItem>
<asp:ListItem Value="3"></asp:ListItem>
<asp:ListItem Value="4"></asp:ListItem>
<asp:ListItem Value="5"></asp:ListItem>
</asp:RadioButtonList>
</td>
There is no text that is supposed to be displayed in the browser, yet
besides the radio buttons are their respective values. My CSS is not
forcing the values to be displayed. Can anyone tell me why this is
happening and what I can do to not have the values displayed?
ThanksAn empty <
asp:ListItem/>
control sets the Text property to the default (i.e.
the same as the Value property). To force an empty Text property value, you
must specify it directly. For example:
code:
<
asp:RadioButtonList ID="MyList" runat="server">
<
asp:ListItem Text="" Value="1" />
<
asp:ListItem Text="" Value="2" />
<
asp:ListItem Text="" Value="3" />
<
/asp:RadioButtonList>
-bgano
0 comments:
Post a Comment