简体   繁体   中英

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM