[求助]RadioButtonList 没反应?
我在.asp中这么写:
<asp:RadioButtonList ID="RadioButtonList1" runat="server" DataSourceID="SqlDataSource1"
DataTextField="opt" DataValueField="opt" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged">
</asp:RadioButtonList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:voteConnectionString %>"
SelectCommand="SELECT [opt] FROM [count]"></asp:SqlDataSource>
放了一个RadioButtonList,想让他在选项发生改变时出发一个事件
在.cs文件里这么写:
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
Response.Write("ddd");
}
只做个测试看看是否起作用,可是没点反应阿,真是奇怪阿!!
知道的就帮我看看咯,谢谢