在datalist里嵌套了一组RadioButtonList,如何访问这组控件?
<asp:DataList ID="dlist" runat="server" CellPadding="1" CellSpacing="0" Width="100%" RepeatDirection="Horizontal"RepeatColumns="3" OnItemCommand="voteThis" DataKeyField="voteitem_id">
<ItemTemplate>
<asp:RadioButtonList id="RadioButtonList2" runat="server">
<asp:ListItem Value="1">选购</asp:ListItem>
<asp:ListItem Value="2">选购</asp:ListItem>
<asp:ListItem Value="3">选购</asp:ListItem>
</asp:RadioButtonList>
<asp:linkButton id="Button1" runat="server" Text="确定;" CommandName="select"></asp:linkButton>
</ItemTemplate>
</asp:DataList>
.............................................
Sub voteThis(ByVal sender As Object, ByVal e As DataListCommandEventArgs)
Dim r5 As RadioButtonList = CType(e.Item.FindControl"RadioButtonList2"),RadioButtonList)
Response.Write(r5.SelectedItem.Value)
End Sub
报错:“未将对象引用设置到对象的实例”
要怎样写???请教