DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
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:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us