PDA

View Full Version : [CLOSED] Execute event or method after close window



multimediait
Jan 29, 2014, 10:01 PM
Good evening, I've created a UserControl that include an ext:Window, this usercontrol is dynamically loaded from a page aspx.
how can I execute an event or method in aspx page after close a window or after click button in UserControl?

thank in advance

Daniil
Jan 30, 2014, 3:36 AM
Hi @multimediait,

Welcome to the Ext.NET forums!

You can listen to a Window's Hide or Close event (depends on a Window's CloseAction which is Hide by default) and call a page's DirectMethod.

<ext:Window runat="server">
<Listeners>
<Hide Handler="App.direct.SomePageDirectMethod();" />
</Listeners>
</ext:Window>