Jul 06, 2011, 8:49 AM
[CLOSED] Event handler before direct event handlers
I have custom control, which has some kind of "dynamic" content. On control I have several direct events as handler on toolbar buttons.
Is there any method/event handler to override on control, which is fired BEFORE direct events (so before RaisePostbackEvent...) and AFTER the state of controls (for example my toolbar buttons) are restored.
I tryed to override OnLoad method on control, but it looks that it's too early becouse state of controls is not restored yet.
Resume: Inside direct event handler I get correct state, but I want to call some code before direct event code execute. I can do it "manualy" in all event handlers ... but question is is it possible to call it before any/all direct event on control fires?
Thanks for reply
Matej
Is there any method/event handler to override on control, which is fired BEFORE direct events (so before RaisePostbackEvent...) and AFTER the state of controls (for example my toolbar buttons) are restored.
I tryed to override OnLoad method on control, but it looks that it's too early becouse state of controls is not restored yet.
Resume: Inside direct event handler I get correct state, but I want to call some code before direct event code execute. I can do it "manualy" in all event handlers ... but question is is it possible to call it before any/all direct event on control fires?
Thanks for reply
Matej
Last edited by Daniil; Jul 06, 2011 at 12:58 PM.
Reason: [CLOSED]