我試圖將圖像添加到一個單選按鈕列表控件,但它不工作..將圖片添加到一個單選按鈕列表在ASP.Net
我想這個..
RadioButtonList2。 Items.Add(new ListItem(String.Format(「src ='../Colors/Dallas_#625527_1.1.png'>」)));
但整個圖像標籤顯示爲文本
我想我的設計時間以及
<asp:RadioButtonList ID="rbListImages" runat="server">
<asp:ListItem Text="One" Value="1"><img src="../Colors/Dallas_#625527_1.1.png" alt="" /></asp:ListItem>
</asp:RadioButtonList>
但它說img標籤不能被嵌套與列表項的標籤。請幫助我..
這只是html5驗證,只是在瀏覽器中看到它應該是o k ... – 2014-11-22 10:30:07
[在RadioButtonList控件中顯示圖像](http://www.c-sharpcorner.com/UploadFile/deepak.sharma00/display-images-in-radiobuttonlist-control-in-Asp-Net/) – 2014-11-22 11:03:43
謝謝Vishal ..傻我.. – 2014-11-22 11:14:03