C# 带有母版页的facebook iframe应用程序不';t在选定的索引更改事件时触发
这是我的单选按钮列表:C# 带有母版页的facebook iframe应用程序不';t在选定的索引更改事件时触发,c#,asp.net,C#,Asp.net,这是我的单选按钮列表: <asp:RadioButtonList runat="server" ID="rdlTest" OnSelectedIndexChanged="rdlTst_selectedChange"> <asp:ListItem>1</asp:ListItem> <asp:ListItem>2</asp:ListItem> </asp:Radio
<asp:RadioButtonList runat="server" ID="rdlTest" OnSelectedIndexChanged="rdlTst_selectedChange">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
</asp:RadioButtonList
它不是出于某种原因触发事件您需要将AutoPostBack=“true”添加到RadioButtonList的定义中
<asp:RadioButtonList runat="server" ID="rdlTest" AutoPostBack="true" OnSelectedIndexChanged="rdlTst_selectedChange">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
</asp:RadioButtonList>
1.
2.
<asp:RadioButtonList runat="server" ID="rdlTest" AutoPostBack="true" OnSelectedIndexChanged="rdlTst_selectedChange">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
</asp:RadioButtonList>