【发布时间】:2010-03-18 19:02:04
【问题描述】:
我正在使用 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 代码。
标签: c# asp.net javascript