Does anyone know how I can reload an UpdatePanel on my parent C# page from an action on my pop-up page WITHOUT refreshing the entire parent page. My parent page doesn’t retain its state in the Url, so the user may have expanded a div here, refreshed a list there, and that parent page state needs to be preserved. All that needs to happen is that an UpdatePanel containing a GridView of ‘DomainObjects.Incident’ should update/refresh when the user has added a new incident in the pop-up.
Is there a way to wire up events between two different asp.net pages? Or should I be using javascript?
You can refresh an UpdatePanel by calling:
If you want to do this from the child page, you should be able to wrap the call up in a function and call it via JavaScript.
Example:
You should probably make sure the parent is still open before calling Refresh() by checking “window.opener.closed”.
I’ve not tested this code, so might have a type’o.