开发者

UpdatePanel refresh from client

开发者 https://www.devze.com 2023-01-01 15:09 出处:网络
I\'m trying to refresh update panel via Javascript: __doPostBack(\"<%=upMyPanel.ClientID %>\", \"\");

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.


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 %>", "");


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消