【问题标题】:Control 'ctl00' of type 'RadioButton' must be placed inside a form tag with runat=server“RadioButton”类型的控件“ctl00”必须放在带有 runat=server 的表单标签内
【发布时间】:2017-08-27 21:04:33
【问题描述】:

我收到如下所示的错误。谁能帮我解决这个问题? enter image description here

我尝试将表单标签添加为

<form id="form1" runat="server" >
<table border="0" class="forms">
<tbody>
<tr>
<td>
<asp:RadioButton runat="server" name="RadioButton1" id="ctl00_ctl36_g_ad6f39ad_7948_409d_ba2a_e8c922b9bcdf_RadioButton1" value="RFP" text="RFP" checked="true">
</asp:RadioButton>
</td>
<td>
<asp:RadioButton runat="server" name="RadioButton2" id="ctl00_ctl36_g_ad6f39ad_7948_409d_ba2a_e8c922b9bcdf_RadioButton2" value="RFQ" text="RFQ"></asp:RadioButton>
</td>
</tr>
</tbody>
</table>
</form>

问题仍然存在。 提前致谢。

【问题讨论】:

标签: c# asp.net


【解决方案1】:

首先你的名字属性不同。

你在使用内容模板吗?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-05-10
    • 1970-01-01
    • 2011-09-14
    • 1970-01-01
    • 1970-01-01
    • 2014-02-28
    • 2016-11-19
    • 1970-01-01
    相关资源
    最近更新 更多