Refresh an updatepanel on buttonclick from code-behind

后端 未结 3 1236
逝去的感伤
逝去的感伤 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:52

    Since i don't see the button btnWall, i assume that it's outside of the UpdatePanel. But you need to define an explicit trigger if you want to allow a control outside of an UpdatePanel to trigger a postback.

    Therefore you can use an AsyncPostBackTrigger:

    
         
             ....
         
         
            
         
     
    

提交回复
热议问题