DropDownList响应selectedindexchanged事件

解决方案 »

  1.   

    设计模式下双击DropDownList
    可以响应Change事件,不知道是不是你想要的。
      

  2.   

    手动注册事件吧,在aspx页面中,如:
    //把下列代码放入模板中
    <asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
    </asp:DropDownList>aspx.cs...
    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {}
      

  3.   

    不好意思,使用上面的代码使用CS了。VB其实道理也是一样的。