Click here to Skip to main content
15,914,379 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.NET
<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?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900