ASP.NET - Adding an UpdatePanel trigger to a LinkButton inside a gridview

后端 未结 4 904
长发绾君心
长发绾君心 2020-12-06 03:29

I was trying to update the content of a modal dialog, and this code works for me:



        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-06 04:23

    You could set the UpdatePanel's UpdateMode to Conditional and update it manually from the UpdateButton_Click-Handler:

    
    

    LinkButton's Click-Event handler:

    Protected Sub UpdateButton_Click(ByVal sender As Object, ByVal e As EventArgs)
        'blah....
        upNewUpdatePanel.Update()
    End Sub
    

提交回复
热议问题