Can't get started

  • Thread starter Thread starter rayreeves
  • Start date Start date
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
 
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
 
Back
Top