I'm having an issue with UpdatePanels (UP). I have a few UP's on my page that are linked via UP Triggers corresponding to different actions between the UP's. I have one UP that plays a video and sets some other information.
I then have another UP with a DataList containing LinkControls. Each LinkControl will update a SQL Query and is wired to the video UP by the "Command" event. I dynamically set the AsyncPostbackTrigger on each LinkControl via the DataList's "OnItemDataBound" event.
The problem is that when I click the LinkControls my video panel does not update. Here is my code to wire the controls:
// Add postback trigger
AsyncPostBackTrigger ap = new AsyncPostBackTrigger();
ap.ControlID = lnkControl.UniqueID;
ap.EventName = "Command";
upFMV.Triggers.Add(ap);
I verify that the triggers are added and even though the button's Command event fires, the video UpdatePanel does not update.
I've manually added the upFMV.Update() call within the LinkControl and that works, but why will it not work when I dynamically bind the trigger?