0
我想要一个RadioButton显示文本,如“< hello world >”(注意我希望显示“<”和“>”字符,而不是解释为HTML标记字符)。在ASP.NET RadioButton中显示“<hello world>”文本
尝试过这样的事情:
<asp:RadioButton ID="RadioButton1" runat="server" Text="<hello world>" AutoPostBack="True" />
但这种浏览器上显示任何文本,并在客户端呈现,就像这样:
<span class="radiobutton"><input id="ctl00_mainCopy_wizard_RadioButton1" type="radio"
... />
<label for="ctl00_mainCopy_wizard_RadioButton1"><hello world></label></span>
任何想法?
很好用,非常感谢。 – 2013-03-21 06:17:54