DropDownList doesn't postback on SelectedIndexChanged

后端 未结 4 1812
臣服心动
臣服心动 2021-01-11 15:28

I\'m writing an ASP.Net webform with some DropDownList controls on it. Then user changes selected item in one of dropdowns, ASP.Net doesn\'t seem to handle SelectedIndexChan

4条回答
  •  时光说笑
    2021-01-11 15:46

    if you are populating the dropdown list during page load then each time the page postback it will reload the list thus negating your postback method. you need to be sure to load the dropdownlist only if (!ispostback)

提交回复
热议问题