我正在使用一個asp單選按鈕組在表單中列出答案。這裏是一個結構的例子(我知道這些文字沒有意義,只和我一起)。有沒有辦法禁用標籤?
<asp:RadioButtonList id="Q2" runat="server">
<asp:ListItem Text="Go to <a target='_blank' href='http:www.google.com'>Google</a>" Value="a"></asp:ListItem>
<asp:ListItem Text="Go to <a target='_blank' href='http:www.yahoo.com'>Yahoo</a>" Value="a"></asp:ListItem>
</asp:RadioButtonList>
所以,我想能夠點擊鏈接,並沒有與它關聯的單選按鈕被選中。在IE瀏覽器中工作正常,但在Firefox中單擊按鈕時將單擊鏈接。我真的不需要標籤來真正選擇適當的單選按鈕,所以有沒有辦法只是禁用它們在javascript或asp或C#代碼中的某個地方?
由此產生的HTML看起來像什麼?瀏覽器從來沒有看到ASP代碼 – Pickle 2010-03-18 19:06:09