警告 17 “AjaxControlToolkit.ModalPopupExtender.Drag”已过时:“The drag feature on modal popup will be automatically turned on if you specify the PopupDragHandleControlID property. Setting the Drag property is a noop” F:\王璐璐个人资料\画之家本机项目\画之家主网\2010-5-11\ArthomePro\ArthomePro\Photo.aspx 514
我点击一下警告!就跑到页面这样了! 提示这个控制过时! 我如果打开设计页面 就会看到!这个控件提示创建控件时出错!                     <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                                <ContentTemplate>
                                    <input id="Hidden4" type="hidden" runat="server" />
                                    <input id="Hidden8" type="hidden" runat="server" />
                                    <input id="Hidden9" type="hidden" runat="server" />
                                    <asp:ImageButton ID="imgUp" runat="server" AlternateText="批量上传" Width="138" class="img1"
                                        Height="43" ImageUrl="images/xph_07-pl.gif" OnClick="imgUp_Click" OnClientClick="clearImage()" />
                                    <cc1:ModalPopupExtender ID="ModalPopupExtender2" runat="server" TargetControlID="Hidden4"
                                        PopupControlID="Panel2" BackgroundCssClass="modalBackground" Drag="true" DropShadow="false"
                                        PopupDragHandleControlID="photo_pls" CancelControlID="ibClose" BehaviorID="Panel2">
                                    </cc1:ModalPopupExtender>
                                    <cc1:ModalPopupExtender ID="ModalPopupExtender3" runat="server" TargetControlID="Hidden9"
                                        PopupControlID="Panel1" BackgroundCssClass="modalBackground" Drag="true" DropShadow="false"
                                        PopupDragHandleControlID="photo_scs" CancelControlID="Img12" BehaviorID="Panel1">
                                    </cc1:ModalPopupExtender>
                                    <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="Hidden8"
                                        PopupControlID="Panel3" BackgroundCssClass="modalBackground" Drag="true" DropShadow="false"
                                        PopupDragHandleControlID="photo2" CancelControlID="c" BehaviorID="Panel3">
                                    </cc1:ModalPopupExtender>
                                </ContentTemplate>
                            </asp:UpdatePanel>下面还有一个问题!解决我 我多给他点分!  就是服务器上发布的项目 页面<%@ master language="C#" autoeventwireup="true" inherits="MasterPage, App_Web_wwmgnpvz" %>
而我本机上发布的是<%@ master language="C#" autoeventwireup="true" inherits="MasterPage, App_Web_xyadf2" %>
2个不一样怎么办呢!  我改了就报无法加载MasterPage!
还有我修改本机上的BLL  DLL 的代码 ! 那么服务器上以前发布编译过的文件 怎么修改啊~ 2个不一样  页面生成类不一样! 如上!         inherits="MasterPage, App_Web_wwmgnpvz  
               inherits="MasterPage, App_Web_xyadf2这个另送分!

解决方案 »

  1.   

    警告又不用管,只要不报错就行了你修改了本地的BLL DLL 的代码 在重新发布一下就可以了
      

  2.   

    你加我QQ 帮我能好不!一会我单独送你分行不!QQ 1193744953
      

  3.   

    因为我本机上的老报404找不到页面的错误!可是文件都在啊!“/”应用程序中的服务器错误。
    --------------------------------------------------------------------------------无法找到资源。 
    说明: HTTP 404。您正在查找的资源(或者它的一个依赖项)可能已被移除,或其名称已更改,或暂时不可用。请检查以下 URL 并确保其拼写正确。 请求的 URL: /Business.aspx
    --------------------------------------------------------------------------------
    版本信息: Microsoft .NET Framework 版本:2.0.50727.3603; ASP.NET 版本:2.0.50727.3614 
      

  4.   

    警告 17 “AjaxControlToolkit.ModalPopupExtender.Drag”已过时:“The drag feature on modal popup will be automatically turned on if you specify the PopupDragHandleControlID property. Setting the Drag property is a noop”
    ---------------------------------------------
    查资料时查到这里。
    我的警告提示:
    警告 CS0618: “AjaxControlToolkit.ModalPopupExtender.Drag”已过时:“The drag feature on modal popup will be automatically turned on if you specify the PopupDragHandleControlID property. Setting the Drag property is a noop”
    仔细看了下,其实英文说得很清楚:这个弹出控件的Drag属性已经过时了,如果你指定了PopupDragHandleControlID 属性,那就不用设置Drag属性了。我的控件如下设置:
    <asp:ModalPopupExtender ID="mpeAddCustomer" runat="server"  
    PopupControlID="pnlAddCustomer" 
    PopupDragHandleControlID="pnlDragAddCustomer"
    DropShadow="true" 
    TargetControlID="HiddenField3" 
    Drag="True" 
    BehaviorID="mpeAddCustomer">
    </asp:ModalPopupExtender>在这里面既有PopupDragHandleControlID又有Drag,所以删除Drag="True" 就好了。