1
votes

I'm trying to refresh update panel via Javascript:

  __doPostBack("<%=upMyPanel.ClientID %>", "");

But somehow its controls are all empty. On other hand they are all filled when I click any trigger control. How can I fix this? thanx.

2

2 Answers

4
votes

AFAIK the UpdatePanel doesn't really postback, so your postback should be using a control that is registered for postbacks (i.e. the trigger control you speak of).

__doPostBack("<%=btnMyTrigger.ClientID %>", "");
1
votes

The UpdatePanel has no client-side API; third party update panels typically do but not the MS one... You could try __doPostBack() as mentioned and target a control that posts to the server (like a button).

Try making the update panel mode to always to see if that works properly with __doPostBack. Also, try the UniqueID instead of the ClientID.