Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/326.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 单选按钮中的文本框不';行不通_C#_Html - Fatal编程技术网

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&ndash;Specify <input id='OtherDPC' type='text' MaxLength='25'/>" value="19" />


现在的问题是,当代码在chrome中运行时,一切正常,但当它在IE中打开时,文本框代替work不工作,当我单击文本框时,它将丢失光标,但手动添加的单选按钮工作正常,有人知道为什么会发生这种情况吗???

ie10和asp.net webforms之间存在已知的不兼容。查看。

您使用的是什么版本的ie?错误不在ie 10中,而是在WebForms中。链接的博客文章证实了这一点。事实上,我下载了修补程序并安装了,不起作用