0
Design page containing Update panel

</head>
<body onkeydown="KeysShortcut(event);" onload="pageLoad();">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="updatePanelMain" runat="server">
            <ContentTemplate>


                <ajaxControlToolkit:DropShadowExtender ID="DropShadowExtender2" runat="server" Opacity="0.6" Rounded="false" Radius="5" TrackPosition="true" TargetControlID="pnlMain" Width="8"></ajaxControlToolkit:DropShadowExtender>
                <table align="center" width="100%">
                <tr>
                <td align="center">
                <asp:Panel ID="pnlTests" runat="server">

我包含的脚本

///
 <script type="text/javascript" language="javascript">

        function DisableBackButton()
        { window.history.forward() }
        DisableBackButton();
        window.onload = DisableBackButton;
        window.onpageshow = function (evt) {
            if (evt.persisted) Disabl`enter code here`eBackButton()
        }
        window.onunload = function ()
        { void (0) }
        window.history.forward(1);
 </script>

上面的脚本适用于 .aspx 页面,但不适用于包含 ajax 脚本管理器更新面板的 aspx 页面

4

0 回答 0