C# 单选按钮中的文本框不';行不通
这是我的密码C# 单选按钮中的文本框不';行不通,c#,html,C#,Html,这是我的密码 <asp:RadioButtonList ID="PlaceofWork" name="PlaceofWork" runat="server" RepeatColumns="2" RepeatDirection="Horizontal"> </asp:RadioButtonList> 代码隐藏: PlaceofWork.DataSource = workplace; PlaceofWork.DataBind(); Plac
<asp:RadioButtonList ID="PlaceofWork" name="PlaceofWork" runat="server" RepeatColumns="2" RepeatDirection="Horizontal">
</asp:RadioButtonList>
代码隐藏:
PlaceofWork.DataSource = workplace;
PlaceofWork.DataBind();
PlaceofWork.Items.Add(new ListItem("Other - Specify<input name=\"OtherWorkPlace\" type=\"text\" id=\"OtherWorkPlace\" MaxLength=\"25\"/>", "19"));
PlaceofWork.DataSource=工作场所;
PlaceofWork.DataBind();
PlaceofWork.Items.Add(新列表项(“其他-指定”、“19”));
出于某种原因,我有另一个radiobuttonlist,它必须手动添加项,代码如下:
<asp:RadioButton ID="DPC23" GroupName="Responsibility" class="Responsibility" runat="server" Text="PeriAnesthesia/RR" value="26" />
<asp:RadioButton ID="DPC24" GroupName="Responsibility" class="Responsibility" runat="server" Text="Other–Specify <input id='OtherDPC' type='text' MaxLength='25'/>" value="19" />
现在的问题是,当代码在chrome中运行时,一切正常,但当它在IE中打开时,文本框代替work不工作,当我单击文本框时,它将丢失光标,但手动添加的单选按钮工作正常,有人知道为什么会发生这种情况吗???ie10和asp.net webforms之间存在已知的不兼容。查看。您使用的是什么版本的ie?错误不在ie 10中,而是在WebForms中。链接的博客文章证实了这一点。事实上,我下载了修补程序并安装了,不起作用