473,473 Members | 2,169 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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
Aug 9 '07 #1
3 1111
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 re****@verizon.net>" <ray<mondwrote 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


Aug 9 '07 #2
On Aug 9, 6:06 pm, "rayreeves" <ray<mond>ree...@verizon.netwrote:
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

Aug 9 '07 #3
Thanks, guys. That did it!

Ray Reeves
"rayreeves re****@verizon.net>" <ray<mondwrote 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


Aug 9 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

80
by: Bibby | last post by:
Hi, I'm interested in getting started in the programming world. I've dabbled in C, C++ and VB6. Which would be the best language to focus my attention to regarding the following considerations: ...
13
by: LRW | last post by:
Having a problem getting a onSubmit function to work, to where it popsup a confirmation depending on which radiobutton is selected. Here's what I have: function checkdel() { if...
0
by: xixi | last post by:
hi, we are using db2 udb v8.1 on win 64 bit with fp3 with type 4 db2jcc.jar driver. when i execute this query , select id, arno01, arcd01, arno16, artx01, armo09, ardy09, arcc09, aryr09,...
2
by: Phil Stanton | last post by:
I have got the following snippet of code to add a record from a form With BoatSet .AddNew !RaceMasterID = RaceSet!RaceMasterID !BoatID = BoatID !ClubID = ClubID !RacingNo = SeriesRacingNo...
65
by: Chris Carlen | last post by:
Hi: From what I've read of OOP, I don't get it. I have also found some articles profoundly critical of OOP. I tend to relate to these articles. However, those articles were no more objective...
2
by: test3 | last post by:
Hello folks, I'm using System.Diagnostics.Process to start a thirdparty program (that works perfectly when started via command line). I'm using Process.StandardOutput to get the output of the...
4
by: Benjamin Hell | last post by:
Hi! I wonder whether there might be a way to find out how a Python program was started (in my case in Windows): By double clicking the file or by calling it on the "DOS" command line prompt. ...
5
by: nttuanit | last post by:
I have a Web App, I want to start Main page automatically after IIS is started without any request from browser. OR run one Script in Global.asax after IIS started. I understand that the...
18
by: Paul Lautman | last post by:
JRough wrote: What do you mean by "redirect the output to Excel"??? Excel isn't a location, it's a spreadsheet program that some (but not all users) will have on their machine. BTW, Location:...
1
by: Nekator | last post by:
Hi everyone. I´ve backuped my MySQL Databases to transport them from Windows to UNIX Server. Backup worked fine, but the restore won´t. It typically get´s the following errors: 090428...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.