DropDownList is not fireing SelectedIndexChanged Event

Discussion in 'ASP .Net Web Controls' started by Dave, Aug 27, 2003.

  1. Dave

    Dave Guest

    I've got many forms that use this SelectedIndexChanged Event on drop down
    lists, and they all work fine... I don't know what I did wrong this time
    I've even tried copying and rebuilding the page. When it posts back it
    fires the "Page Load" procedure but never continues to fire the
    SelectedIndexChanged event. Is there something basic I should look for? I
    have Autopostback=true, and I have made sure the Event handler was added to
    the InitializeComponent() procedure in the Web Form Designer region.

    <asp:dropdownlist id="ddlVendorNo" Runat="server" Width="100%"
    AutoPostBack="True" />

    this.ddlVendorNo.SelectedIndexChanged +=
    System.EventHandler(this.ddlVendorNo_SelectedIndexChanged);

    private void ddlVendorNo_SelectedIndexChanged(object sender,
    System.EventArgs e) {}
     
    Dave, Aug 27, 2003
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.