DropDownList is not fireing SelectedIndexChanged Event

D

Dave

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) {}
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top