Repeater中嵌入了RadioButtonList,我想在选择不同选项时触发RadioButtonList的OnSelectedIndexChanged事件OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged"
如果没有使用嵌套的话直接在RadioButtonList的RadioButtonList1_SelectedIndexChanged里写代码就行了,但使用嵌套了那应该在什么事件中写代码?
如果没有使用嵌套的话直接在RadioButtonList的RadioButtonList1_SelectedIndexChanged里写代码就行了,但使用嵌套了那应该在什么事件中写代码?
{
RadioButtonList r = sender as RadioButtonList;
Response.Write(r.SelectedIndex);
}
http://www.cnblogs.com/insus/articles/2036884.html
<asp:RadioButtonList ID="RadioButtonList1" runat="server" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged"> 是可以触发的