我正在尝试 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>
谁能告诉我为什么我无法禁用页面的其余部分?谢谢。