i am using a web dialog window with the close button in the header turned off and instead i have a button inside the dialog to close it. The code inside the button changes the window state to hidden.
i have the dialog window inside an update panel. When i click a test button on the page to load the dialog button the first time it loads everything works fine. The page goes into Modal mode and the web dialog window pops up. When i hit the ok button on the dialog window the page comes out of modal mode and the dialog window goes away. However the next time i hit the button to launch the window the page does not go into modal mode but the dialog window still pops up.
If i turn the close button on in the header control and close the window that way, everything seems to work fine. I am able to open and close the dialog window multiple times and every time it goes into its modal state.
Am i missing something in my close button. does it need to cause a full postback of the page? even though im setting the window state to hidden it does not seem fire the State Changed Event like the Header close button does.
any tips would be appreciated.