Update Panel

Ei Dar Li Ko Ko asked on August 10, 2017 18:42

Hi,

I want to show something on literal inside the update panel. Outside the panel has a button, when click on the button, the literal text will be changed. However, I cannot fired the button event for the update panel only. The whole page is refreshed after the panel is updated. I just want to use the button to update as async postback but I cannot do so. Please help.

Recent Answers


Mike Wills answered on August 10, 2017 21:24

Hi Ei,

Can you define your button as a AsyncPostBackTrigger as described here:

https://msdn.microsoft.com/en-us/library/system.web.ui.asyncpostbacktrigger.aspx

The article says that using an AsyncPostBackTrigger is useful "for controls that are outside a panel."

Mike

3 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.