我在 asp.net 的服务器端单击按钮期间使用 ajax 模态弹出扩展器显示了一条确认消息。显示该确认消息后,当我单击浏览器的后退按钮时,再次弹出相同的确认消息。单击浏览器的后退按钮时如何隐藏该弹出消息?
我的代码是
<asp:Button ID="btnShowPopup" runat="server" Style="display: none" />
<asp:Panel runat="server" ID="pnlInterfaceDetails" Style="display: none;">
<asp:Label ID="Label1" runat="server" Text="Confirmation Message" Font-Bold="true"
Font-Size="10pt" Style="color: White; font-family: Sans-Serif Verdana Arial"></asp:Label>
<table>
<tr style="height: 35px">
<td colspan="2">
<b><span style="color: Black;">Data Saved Successfully.</span></b>
</td>
</tr>
<tr style="height: 35px">
<td align="center" colspan="2">
<asp:Button runat="server" ID="btnConfirmClose" Text="Close" ToolTip="Close" Width="65px"
OnClick="btnConfirmClose_Click" CssClass="buttonOrangebg" />
</td>
</tr>
</table>
</asp:Panel>
<asp:ModalPopupExtender runat="server" ID="mpeInterfaceDetails" TargetControlID="btnShowPopup"
BackgroundCssClass="modalBackground" PopupControlID="pnlInterfaceDetails" />
</div>