0
我正在嘗試ModalPopupExtender的示例。當彈出窗口發生時,彈出窗口後面的控件不會被禁用,也就是說,我仍然可以點擊彈出窗口後面的按鈕。以下是密碼ModalPopupExtender:父頁面沒有禁用
<body>
<form id="form1" runat="server">
<div>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
</div>
<div>
<asp:Button ID="Button1" runat="server" Text="Button" />
</div>
<div>
<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" DropShadow="true" TargetControlID="Button1"
PopupControlID="Panel1" BackgroundCssClass="backgroundModalPopup" PopupDragHandleControlID="Panel1">
</asp:ModalPopupExtender>
<asp:Panel ID="Panel1" runat="server" BackColor="Aqua" Style="display:none">
This is modal pop up extender : hi
<asp:Button ID="Button2" runat="server" Text="Button" />
</asp:Panel>
</div>
</form>
</body>
任何人都可以請讓我知道爲什麼我不能禁用頁面的其餘部分?謝謝。