G
Guest
I am having a problem getting my visual studio to recognize my option buttons
within a table control. When I place
<asp:TableCell>
<asp:RadioButton idâ€test1†Text=â€Test†GroupName=â€Vote†runat=â€server†/>
</asp:TableCell>
and try to access that Radiobutton within the page_load I get a error
telling it does not no what that object is. If i use a regular HTML table it
works, but not in a table control.
On the other hand the following works if I use don’t use code behind in
visual studio, and just create my own aspx file with everything on the same
page. Example:
<script runat="server">
Sub Page_Load(sender as object, e as eventArgs)
Test1.Visible = False
End sub
</script>
<html>
<body>
<form runat="server">
<asp:Table id="Table1" runat="server">
<asp:TableRow>
<asp:TableCell>
<asp:RadioButton id="test1" GroupName="Vote" runat="server" />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
</body>
</html>
can someone please help me with this problem?
within a table control. When I place
<asp:TableCell>
<asp:RadioButton idâ€test1†Text=â€Test†GroupName=â€Vote†runat=â€server†/>
</asp:TableCell>
and try to access that Radiobutton within the page_load I get a error
telling it does not no what that object is. If i use a regular HTML table it
works, but not in a table control.
On the other hand the following works if I use don’t use code behind in
visual studio, and just create my own aspx file with everything on the same
page. Example:
<script runat="server">
Sub Page_Load(sender as object, e as eventArgs)
Test1.Visible = False
End sub
</script>
<html>
<body>
<form runat="server">
<asp:Table id="Table1" runat="server">
<asp:TableRow>
<asp:TableCell>
<asp:RadioButton id="test1" GroupName="Vote" runat="server" />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
</body>
</html>
can someone please help me with this problem?