On my aspx page, I have one WebDialogWindow and one button, click the button, the WebDialogWindow will show.
There is a dynamically generated hyperlink in the WebDialogWindow, click the hyperlink, I'm going to another page. Then I click the "Back" button of the browser and I see the WebDialogWindow is there without any content.
My question is: what I should do to make the WebDialogWindow disappear when I click the "Back" button?
Any input will be highly appreciated!
Hello BinBin,
It has been a while since you have made your post, but I suppose the other community members can benefit from this answer as well.
Because clicking on “Back” browser button in most situations reloads the page from browser cache the normal page lifecycle is interrupted.
In this scenario you should clear the browser cache by code or by page declarations ( http://stackoverflow.com/questions/6833452/how-to-refresh-page-when-hitting-back-button-on-browser-ie-chrome-firefox-safar ) and use one of the events fired from your page to hide the dialog window or update its data.
How you can hide the dialog window on Server or on Client you can see here:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.1/CLR4.0/html/WebDialogWindow_Hide_the_Dialog_Window.html
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.1/CLR4.0/html/WebDialogWindow_Displaying_the_WebDialogWindow_Client_Side.html
I hope that this information will help you in resolving this issue.