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
.
精彩评论