为什么我的DropDownList1_SelectedIndexChanged事件没反应阿?
wzphp 2004-11-02 12:14:06 我前面已经<asp:DropDownList id="DropDownList1" AutoPostBack="true" runat="server"></asp:DropDownList>了,在下拉菜单中选了某项之后页面有刷新了,但是怎么DropDownList1_SelectedIndexChanged没有反应阿?我的DropDownList1_SelectedIndexChanged事件如下:
private void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e)
{
Response.Write("This DropDownList has Changed.");
}
结果页面刷新后,并没有显示出“This DropDownList has Changed.”,有谁知道为什么吗?谢了先!