开发者

How to refresh user control by opened window with jQuery

I have a link button in a user control, when I am going to click link button o开发者_运维问答ne page will open in a new window. When the opened window page is closed, the user control should be refreshed. The user control resides in one main aspx page.

How to achieve this with jQuery?


this can be done with simple javascript

__doPostBack('update_panel_id', '');


Since your user control resides in an update panel, you can call the __doPostBack() method to perform a partial postback that will asynchronously refresh that panel.

From the click handler of the button that closes your popup window, you can do:

window.opener.__doPostBack("yourUpdatePanelClientId", "");
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜