Can't get started

R

rayreeves

I have a dozen buttons on the form with typical HTML code: <asp:
RadioButton id = "RadioButton2" ... runat = "server" ... >
</asp:RadioButton>
It compiles, but when run I get:
Control 'RadioButton2' of type 'RadioButton' must be placed inside a form
tag with runat=server.

RadioButton2 is just the first on the list. The same error occurs whichever
button is first.

Ray Reeves
 
G

Guest

I have a dozen buttons on the form with typical HTML code: <asp:
RadioButton id = "RadioButton2" ... runat = "server" ... >
</asp:RadioButton>
It compiles, but when run I get:
Control 'RadioButton2' of type 'RadioButton' must be placed inside a form
tag with runat=server.


Hi Ray

server controls must be placed inside a form, for example

<form runat="server">
<asp:RadioButton id = "RadioButton2" ... runat = "server" ... ></
asp:RadioButton>
</form>

Cheers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top