I have a page with a panel controlled by an Ajax ModalPopupExtender. The page also has an Asp:Timer with an OnTick event.
The OnTick event will refresh the page. What I want to do is put an IF THEN statements that will check IF the ModalPopup is active. If it is the timer will just reset. If the popup is not active the page will refresh.
Unfortunately I have not been able to find a way of detecting if the popup is active or not. Any suggestions.
I even tried adding an On click event on the imagebutton I use to activate the popup. On triggering I set a Flag to True. I had similar events on the OK and Cancel buttons in the popup panel. These events set the flag to False. I then changed the OnTick event to check the value of the flag.
Unfortunately the imagebutton continues to launch the popup but does not trigger the onClick and so the flag never gets set to True.
Any help appreciated...
View Complete Post