DropdownList.selectedIndex always 0 (yes, I do have !isPostBack)

后端 未结 4 1308
萌比男神i
萌比男神i 2020-12-19 10:38

(Scroll down to bottom of post to find solution.)

Got a asp.net page which contains a Datalist. Inside this datalist, there is a template containing

4条回答
  •  余生分开走
    2020-12-19 11:09

    Regarding your 2nd question:

    I suggest you remove the AutoPostBack from the dropdown, add an "Update" button, and update the data in the button Click event.

    The button can hold Command and CommandArgument values, so it's easy to associate with a database record.

提交回复
热议问题