我有两个下拉列表,我想要当第一个和第二个下拉列表触发器然后填充 updatepanel_sehiri_izmir_radiolist 但我无法创建动态radiobutonlist。我认为使用datalist和radiobuton列表。但我无法运行代码
<asp:UpdatePanel ID="UpdatePanel_sehiri_izmir_radiolist" runat="server" ChildrenAsTriggers="True"
UpdateMode="Conditional">
<ContentTemplate>
<asp:DataList ID="DataList_sehiri_izmir_yeni" runat="server" DataSourceID="SqlDataSource_sehir_izmir"
OnItemCommand="DataList_sehiri_izmir_yeni_ItemCommand">
<ItemTemplate>
<asp:RadioButtonList ID="rb_sehiri_izmir" runat="server" AutoPostBack="True" RepeatDirection="Horizontal"
CommandArgument="gonder" RepeatColumns="1" RepeatLayout="Flow" OnSelectedIndexChanged="rb_sehiri_izmir_SelectedIndexChanged">
<asp:ListItem id="TestedYes" runat="server" Value='<%# Eval("imp_id") %>' Text='<%# Eval("imp_id") %>' />
<asp:ListItem id="TestedNo" runat="server" Value="False" Text="No" />
</asp:RadioButtonList>
</ItemTemplate>
</asp:DataList>
<asp:SqlDataSource ID="SqlDataSource_sehir_izmir" runat="server" ConnectionString="<%$ ConnectionStrings:Web_KentrehberiConnectionString %>"
SelectCommand="SELECT * FROM [Important_places]"></asp:SqlDataSource>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="drp_sehiri_izmir_ulke_adi" EventName="SelectedIndexChanged" />
<asp:AsyncPostBackTrigger ControlID="drp_sehiri_izmir_sehir_adi" EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>