Search code examples
asp.netvb.netevent-handlingdrop-down-menuselectedindexchanged

When I click a button on the form...my code never reaches it's onclick event


I have a dropdownlist and a textbox with a button on a form. When a button is clicked it does not go to my onclick even in the code but it goes to my dropdownlist's selectedIndexchanged event. How can I fix this?


Solution

  • Does your Page_Load have a call to changing the selected index or the items in the DropDownList outside of checking for postback?