无法拖动模态弹出窗口

时间:2010-12-27 09:27:12

标签: asp.net ajax

我创建了Ajax模式弹出窗口。这不是支持拖累。

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<asp:ModalPopupExtender ID="ModalPopupExtender" runat="server"
                        TargetControlID="Button1"
                        PopupControlID="Panel1"
                        BackgroundCssClass="modalBackground"
                        CancelControlID="btnCancel"
                        RepositionMode="None"
                        PopupDragHandleControlID="PopUpHeader" />
<asp:Button ID="Button1" runat="server" Text="First Modal Popup" /> 
<asp:Panel ID="Panel1" runat="server" Height="180px" Width="400px" CssClass="ModalWindow">
    <div id="PopUpHeader" style="background-color:Yellow;">
            Error Message
    </div>
    <div>
        My name is error of proble. For comming is satun.
        <br /><br /><br /><br />
    </div>
    <div>
        <input type="button" id="btnCancel" runat="server" value="Close" style="float:right;margin-right:20px;" />
    </div>
</asp:Panel>

我如何得到拖放。

1 个答案:

答案 0 :(得分:4)

首先http://www.asp.net/ajax/ajaxcontroltoolkit/samples/modalpopup/modalpopup.aspx

您必须使用PopupDragHandleControlID="PopUpHeader"

修改PopupDragHandleControlID="Panel1"
PopupDragHandleControlID

正在控制使用Modal Popup的whict面板。