Hi,
i created a usercontrol that have public event named "DialogClosed".
this usercontrol also have a button.
i programmed it that when the user clicks on the button, the background code fires the "DialogClosed" event.
The problem is that after the user clicked on the button, it caused to postback, which created a new instance of my control, and my control lost all his properties because the original instance no longer exist. so when i fire the event, it throws an exception (because "DialogClosed" == null)
Thanks, Eitan H.s.