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