开发者

How "refresh" a AJAX UpdatePanel from another form?

If in the ASP F开发者_运维百科orm "A" I have a Updatepanel ... How refresh this when click in a button of ASP Form "B".

Thanks


As long as they are on the same page you can do it via javascript I think:

<div id="Container" onclick="__doPostBack('UpdatePanel1', '');">

Ref: http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/

Though I think in .Net having 2 forms on the same page is a little weird - only one can be runat=server


You can just do UpdatePanelId.Update()?

I'm not sure it works between different forms. You'll need to set the UpdatePanel's update mode as Conditional.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜