I have seen numerous topics on my search on the internet about this but none of the solutions offered seem to work for me.
I have a bunch of dynamically generated buttons in my update panel. The update panel's update mode is set to conditional. The script manager's partial page rendering is set to true. Those dynamically generated buttons have this line in the code behind to make them asynchronous triggers:
ScriptManager1.RegisterAsyncPostBackControl(abutton1)
When the button's event fires, the update panel IS refreshed. However, I want the update panel to refresh AFTER the button's server side code runs. I have an updatepanel.update() line at the end of the button's code and it hits that line in debug mode. But it is not refreshing the update panel. The button actually adds to the database and that is the refresh I want to see.
I have a breakpoint set in the update panel's load event and it hits that breakpoint the first time but not when I call the updatepanel.update() call at the end of the code from the button.