views:

114

answers:

2

Hi,

If in the ASP Form "A" I have a Updatepanel ... How refresh this when click in a button of ASP Form "B".

Thanks

+1  A: 

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.

GenericTypeTea
+3  A: 

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

brendan
+1 for the "little weird" that was my thought exactly, but I don't know @nelson's requirements.
David Stratton
I found this post searching for how to refresh an update panel from javascript, and this is exactly what I need. Great!
awe