开发者

How "refresh" a AJAX UpdatePanel from another form?

开发者 https://www.devze.com 2022-12-10 13:00 出处:网络
If in the ASP F开发者_运维百科orm \"A\" I have a Updatepanel ... How refresh this when click in a button of ASP Form \"B\".

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

精彩评论

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

关注公众号