|
|
|
start date: Thu, 09 Aug 2007 16:06:55 GMT,
posted on: microsoft.public.dotnet.framework.aspnet
back
| Thread Index |
|
1
rayreeves raymond
|
|
2
Teemu Keiski
|
|
3
Alexey Smirnov
|
|
4
rayreeves raymond
|
Can't get started
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
Date:Thu, 09 Aug 2007 16:06:55 GMT
Author:
|
Re: Can't get started
Do they exist inside <form runat="server"> element on the page?
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"rayreeves reeves@verizon.net>" <ray<mond> wrote in message
news:zYGui.14942$jk4.4678@trndny01...
>
>
> 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
>
>
Date:Thu, 9 Aug 2007 20:29:05 +0300
Author:
|
Re: Can't get started
On Aug 9, 6:06 pm, "rayreeves" <ray<mond>ree...@verizon.net> wrote:
> 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
Date:Thu, 09 Aug 2007 10:34:59 -0700
Author:
|
Re: Can't get started
Thanks, guys. That did it!
Ray Reeves
"rayreeves reeves@verizon.net>" <ray<mond> wrote in message
news:zYGui.14942$jk4.4678@trndny01...
>
>
> 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
>
>
Date:Thu, 09 Aug 2007 19:23:17 GMT
Author:
|
|
|