I've just implemented a small UpdatePanel
with a button outside the panel that modifies the controls within it. Per instructions here and here I have set up a trigger on Page_Load
that looks like this...
UpdatePanel1.Triggers.Add(item: new AsyncPostBackTrigger
{
ControlID = Button1.UniqueID
});
...in order to allow the button click event to update the panel asynchronously (it was refreshing the whole page before). However, now it works asynch the first time, but every other click after that triggers a whole page refresh. I'm pretty confused by that one. Can anyone spot what's wrong? (Edit: To clarify, the following represents the refresh results of a series of clicks starting after page load: Asynch (good), Whole Page (bad), Asynch, Whole Page, Asynch, Whole Page, etc...)
FYI the form is ASP.NET 4.0 and resides in a SharePoint 2013 visual web part, if that matters.