简体   繁体   English

类型为“ RadioButton”的控件“ ctl00”必须置于带有runat = server的表单标记中

[英]Control 'ctl00' of type 'RadioButton' must be placed inside a form tag with runat=server

I got an error as shown below. 我收到如下所示的错误。 Can anyone help me to fix the issue please? 谁能帮我解决问题? enter image description here 在此处输入图片说明

I tried adding form tag as 我尝试添加表单标签为

<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>

still the issue persists. 问题仍然存在。 Thanks In Advance. 提前致谢。

First of all your name properties are different. 首先,您的名称属性是不同的。

are you using content template? 您正在使用内容模板吗?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 类型为&#39;TextBox&#39;的控件&#39;ctl00_txtDebug&#39;必须放置在带有runat = server的表单标记中 - Control 'ctl00_txtDebug' of type 'TextBox' must be placed inside a form tag with runat=server 类型为“ DataControlLinkBut​​ton”的控件“ DataLoading1_gdvDataGroups_ctl01_ctl00”必须置于带有runat = server的表单标记中 - Control 'DataLoading1_gdvDataGroups_ctl01_ctl00' of type 'DataControlLinkButton' must be placed inside a form tag with runat=server 类型为&#39;TextBox&#39;的控件&#39;ctl07&#39;必须放置在带有runat = server的表单标记中。 - Control 'ctl07' of type 'TextBox' must be placed inside a form tag with runat=server. 'Button' 类型的控件 'ctl02' 必须放置在带有 runat=server 的表单标签内 - Control 'ctl02' of type 'Button' must be placed inside a form tag with runat=server 类型为“ HtmlEditorExtender”的控件必须放在带有runat = server的表单标签中 - Control of type 'HtmlEditorExtender' must be placed inside a form tag with runat=server 必须将带有'LinkBut​​ton'类型的控件xxx放在带有runat = server的表单标签内 - Control xxx of type 'LinkButton' must be placed inside a form tag with runat=server “SPGridView”类型的控件“testGridview”必须放置在带有 runat=server 的表单标签内 - Control 'testGridview' of type 'SPGridView' must be placed inside a form tag with runat=server &#39;TextBox&#39; 类型的控件 &#39;txtUserName&#39; 必须放置在带有 runat=server 的表单标签中 - Control 'txtUserName' of type 'TextBox' must be placed inside a form tag with runat=server 必须放置在带有 runat=server 的表单标签内 - Must be Placed Inside a Form Tag With runat=server 类型为&#39;TextBox&#39;的控件&#39;MainContent_forenameTxt&#39;必须放置在带有runat = server的表单标签中 - Control 'MainContent_forenameTxt' of type 'TextBox' must be placed inside a form tag with runat=server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM