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