<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="up" runat="server">
<ContentTemplate>
<asp:Panel runat="server" ID="pnlPopup" Width="900px" Height="300px">
所要显示的内容
</Panel>
<input id="hid" type="hidden" runat="server" style="width: 247px" />
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="hid"
PopupControlID="pnlPopup" DropShadow="false" CancelControlID="btnCancel" Drag="false"
X="260" Y="180" PopupDragHandleControlID="pnlPopup" BackgroundCssClass="modalBackground">
</cc1:ModalPopupExtender>
</ContentTemplate>
</asp:UpdatePanel>
显示内容中如果有事件,比如button时间,点击后还需要显示出子页面,必须在方法后面加 ModalPopupExtender1.Show();