Refresh an updatepanel on buttonclick from code-behind

后端 未结 3 1195
逝去的感伤
逝去的感伤 2021-01-21 15:51

I\'m using a Gridview that is using datasource & databinding. When i reload the page the gridview is updated but I want it to be on the buttonclick, but it\'s not working fo

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-21 16:34

    You should either put the button inside the update panel or define an explicit trigger to update the update panel on button click event as suggested by Tim Schmelter.

提交回复
热议问题