473,503 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with .netframework sp1

I have a web application and we had nice days, I don't know why I installed
..netframework sp1 and then a strange error happend:

Control 'rdPoll_0' of type 'RadioButton' must be placed inside a form tag
with runat=server.

Actually, there is no rdPoll_0 in application, but there is rdPoll:
Protected WithEvents rdPoll As System.Web.UI.WebControls.RadioButtonList

Nov 18 '05 #1
4 1384
When ASPNET renders the server controls to html it is probably assigning
unique clientside IDs. Hence the rdPoll_0.

Is rdPoll inside your form tag? :)

Post your .aspx page.

Greg

"Saber" <saber[-.-AT.--]maghalat.com> wrote in message
news:ed*************@TK2MSFTNGP11.phx.gbl...
I have a web application and we had nice days, I don't know why I installed .netframework sp1 and then a strange error happend:

Control 'rdPoll_0' of type 'RadioButton' must be placed inside a form tag
with runat=server.

Actually, there is no rdPoll_0 in application, but there is rdPoll:
Protected WithEvents rdPoll As System.Web.UI.WebControls.RadioButtonList

Nov 18 '05 #2
Hi Saber,

That "phantom" id: "rdPoll_0" is the "ClientID" property of your "rdPoll"
radioButton control. All controls get rendered with a client-side id whether
or not you define one in your code; in this case you did, so it got assigned
as # 0. If the radiobutton was a repeating item in your datagrid, you'd see
the number at the end of the id increment by one for each instance of the
radiobutton repeating.

As far as the error-- is the radiobutton already inside a pair of form tags?
If not, the solution is pretty clear, just move the opening form tag above
your first server control &/or move the closing form tag below the last
server control in your page.

THe list of issues that SP1 fixes contains at least 5 separate items related
to the datagrid. Maybe SP1 has fixed an error that was allowing your (for
lack of a better term) "illegal" radiobutton. Now that SP1 has implemented
a fix, the datagrid is correctly telling you what's wrong with the code. ??

Here's the list of all fixes that Sp1 addresses: YOu can find all the
datagrid changes within the list: http://support.microsoft.com/?kbid=867460

For more info on the ClientID property see:
http://msdn.microsoft.com/library/de...entIDTopic.asp

"Saber" wrote:
I have a web application and we had nice days, I don't know why I installed
..netframework sp1 and then a strange error happend:

Control 'rdPoll_0' of type 'RadioButton' must be placed inside a form tag
with runat=server.

Actually, there is no rdPoll_0 in application, but there is :
Protected WithEvents rdPoll As System.Web.UI.WebControls.RadioButtonList

Nov 18 '05 #3
Thanks,
You're right.
I don't know who wrote </form> in middle of my aspx page and before radio
button! ;-)
"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
When ASPNET renders the server controls to html it is probably assigning
unique clientside IDs. Hence the rdPoll_0.

Is rdPoll inside your form tag? :)

Post your .aspx page.

Greg

"Saber" <saber[-.-AT.--]maghalat.com> wrote in message
news:ed*************@TK2MSFTNGP11.phx.gbl...
I have a web application and we had nice days, I don't know why I

installed
.netframework sp1 and then a strange error happend:

Control 'rdPoll_0' of type 'RadioButton' must be placed inside a form tag
with runat=server.

Actually, there is no rdPoll_0 in application, but there is rdPoll:
Protected WithEvents rdPoll As System.Web.UI.WebControls.RadioButtonList


Nov 18 '05 #4
Hi Chris,
Thanks for info.
no, there were no relation between datagrid and radio button.
but I don't know why a closing form tag (</form>) added in middle of code,
and I don't know why I posted a message before looking again in aspx file!
anyhow, it is solved now :)

--
Saber S.
http://maghalat.com (Persian)
"Chris Mohan" <Ch********@discussions.microsoft.com> wrote in message
news:20**********************************@microsof t.com...
Hi Saber,

That "phantom" id: "rdPoll_0" is the "ClientID" property of your "rdPoll"
radioButton control. All controls get rendered with a client-side id
whether
or not you define one in your code; in this case you did, so it got
assigned
as # 0. If the radiobutton was a repeating item in your datagrid, you'd
see
the number at the end of the id increment by one for each instance of the
radiobutton repeating.

As far as the error-- is the radiobutton already inside a pair of form
tags?
If not, the solution is pretty clear, just move the opening form tag above
your first server control &/or move the closing form tag below the last
server control in your page.

THe list of issues that SP1 fixes contains at least 5 separate items
related
to the datagrid. Maybe SP1 has fixed an error that was allowing your (for
lack of a better term) "illegal" radiobutton. Now that SP1 has
implemented
a fix, the datagrid is correctly telling you what's wrong with the code.
??

Here's the list of all fixes that Sp1 addresses: YOu can find all the
datagrid changes within the list:
http://support.microsoft.com/?kbid=867460

For more info on the ClientID property see:
http://msdn.microsoft.com/library/de...entIDTopic.asp

"Saber" wrote:
I have a web application and we had nice days, I don't know why I
installed
..netframework sp1 and then a strange error happend:

Control 'rdPoll_0' of type 'RadioButton' must be placed inside a form tag
with runat=server.

Actually, there is no rdPoll_0 in application, but there is :
Protected WithEvents rdPoll As System.Web.UI.WebControls.RadioButtonList

Nov 18 '05 #5

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

Similar topics

4
1291
by: dave | last post by:
I have downloaded and implemented the master pages technique from http://www.asp.net/ControlGallery/Disclaimer.aspx? downloadControl=385&tabindex=2 This is really quite a good thing. It has...
2
4036
by: hdjim69 | last post by:
hi, I'm kinda confused as to how I get an assembly to show up in my References dialogue box. I see lots of posts like this: @="C:\\MyAssemblies" but I'm not sure what the @ is referring to and...
6
5860
by: John Morgan | last post by:
I urgently need tom use SP3a upgrade the instance of SQLServer200 MSDE runing on my local machine but I am having problems in doing so. My first problem is that when I start the set up procedure...
5
19746
by: Ken | last post by:
Hello Everyone, I think that there is no way to add a network printer in .Net. I have tried ,as an alternative, using windows API AddPrinter. This was not successful. Does anybody have a...
5
1479
by: Peter Morris | last post by:
I'm currently aving a problem with IIS. I did some ASP programming a few month back using VBScript, and got some basic programs working. I've started learning C# recently, trying to program...
1
1523
by: Emil | last post by:
I've written a simple application. It consists of main window, menu and a label. I added event handler to the main form (KeyDown), so when I push a key on the keyboard, then it's key code should be...
3
4888
by: vinayak | last post by:
Hi I am displaying data in Datagrid in ASP.NET with Edit/Update functionality for each row. On the same page I have 2 Button controls which submits the request to server. These button controls...
2
1153
by: Sebastian Martinez | last post by:
Hi, I have a problem with ASP.NET 2.0 and Windows 2000 Server. I develop a WebService for ASP.NET 2.0, in Windows XP Professional with VS.NET 2005 and works correctly. I have installed the...
5
1212
by: fpbrat | last post by:
Hi, I have a problem with .NET URLs. ie something.com/something.aspx/ If I add the following to it
0
7084
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7458
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
5578
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
4672
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
3167
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
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
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 ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
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.