Moadlpopextender Drag无效 [英] Moadlpopextender Drag is not working

查看:82
本文介绍了Moadlpopextender Drag无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

源页面代码如下

Source page code as follows

<style type="text/css">
    body
    {
        background-color: White;
    }
    .modalBackground
    {
        background-color: Gray;
        filter: alpha(opacity=50);
        opacity: 0.7;
    }
    
    .tdHeader
    {
        background-image: linear-gradient(bottom, rgb(240,216,216) 0%, rgb(77,10,10) 100%);
        background-image: -o-linear-gradient(bottom, rgb(240,216,216) 0%, rgb(77,10,10) 100%);
        background-image: -moz-linear-gradient(bottom, rgb(240,216,216) 0%, rgb(77,10,10) 100%);
        background-image: -webkit-linear-gradient(bottom, rgb(240,216,216) 0%, rgb(77,10,10) 100%);
        background-image: -ms-linear-gradient(bottom, rgb(240,216,216) 0%, rgb(77,10,10) 100%);
        background-image: -webkit-gradient(	linear,	left bottom, left top,color-stop(0, rgb(240,216,216)),
        color-stop(1, rgb(77,10,10)));
    }
</style>



Moadlpopextender代码如下




Moadlpopextender code as follows

<asp:ModalPopupExtender Drag="true" PopupDragHandleControlID="tdHeader" DropShadow="true"

            PopupControlID="Pnlnegativefeedback" BackgroundCssClass="modalBackground" TargetControlID="ddlcourse"

            ID="ModalPopupExtender1" runat="server" CancelControlID="btnCancel">
        
<asp:Panel ID="Pnlnegativefeedback" runat="server" BackColor="RosyBrown">
        <tr>
            <td  runat="server" colspan="2" id="tdHeader" class="tdHeader" style="cursor: move">
                <asp:Label ID="Label30" runat="server" Text="Negative_FeedBack" Font-Bold="true"

                    Font-Size="Medium">
            
        </tr>
        
        <br />
        <asp:TextBox ID="TxtNegativeFeedback" runat="server">
        <tr>
            <td colspan="2" align="center">
                <asp:Button runat="server" Text="Ok" ID="btnok" onclick="btnok_Click" />
                <asp:Button runat="server" Text="Cancel" ID="btnCancel" OnClick="btnCancel_Click1" />
            </td>
        </tr>



在运行模式下,当irun Pnlnegativefeedback(panelpopup打开)但在Label Negative_FeedBack中,当我拖动面板时弹出窗口没有移动。



我的代码中有什么问题。



请帮帮我。



问候,

Narasiman P.


In teh run mode when irun Pnlnegativefeedback (panelpopup is open) but in the Label Negative_FeedBack when i drag the panel popup is not moving.

what is the problem in my code.

please help me.

Regards,
Narasiman P.

推荐答案

看到我在更改PopupDragHandlControlID后尝试过你的面板ID

它正在工作



See I have tried after change PopupDragHandlControlID with your panel ID
and it's working

<asp:ModalPopupExtender Drag="true" PopupDragHandleControlID="Pnlnegativefeedback" DropShadow="true"
       PopupControlID="Pnlnegativefeedback" BackgroundCssClass="modalBackground" TargetControlID="ddlcourse"
       ID="ModalPopupExtender1" runat="server" CancelControlID="btnCancel" />





谢谢



Thanks


这篇关于Moadlpopextender Drag无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆