Hi
In my page1.aspx there are 2 buttons
one is for open a model-popup
Other is to navigate to another page
First user click 1st botton to open model-popup.Then
close the model popup.
Then user click on 2nd button to navigate to another page2.aspx
Then he click on "back" button of the browser from that page2.aspx to come back to Page1.aspx
It is coming back to page1.aspx. But it is showing the Pop-up window open (But the user has closed that before).
My code is as follows:
----------------------------------------------------------
<asp:Button ID="dummybtnSub" runat="server" Text="" Style="display: none" />
<ajaxToolkt:ModalPopupExtender ID="mpeAddSubMeetingPopup" DropShadow="true" RepositionMode="RepositionOnWindowScroll"
BackgroundCssClass="modelBackground" CancelControlID="btnPopupCloseSub" runat="server"
TargetControlID="dummybtnSub" PopupControlID="divAddSubMeetingPopup">
</ajaxToolkt:ModalPopupExtender>
<div id="divAddSubMeetingPopup" style="width: 450px; height: 500px; background-color: #EEEAE4;
border: 5px solid #4765A5;display: none ">.............
...................................</div>
I have tried ModelPopUp.hide(), Popup-DIV (display none) etc.
How can I hide the popup when navigate back to Page1.aspx?