Ajax重新排序列表不可拖动 [英] Ajax reorder list not dragable
本文介绍了Ajax重新排序列表不可拖动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Re-order list ajax控件,它在笔记本电脑中可以正常工作,但是当我在线发布它(godaddy,IIS 7)时,该项目无法拖动.
我试图添加处理程序
<add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
但是我的代码在这里没有作用
<div class="reorderListDemo" style="width: 60%;"> <cc1:ReorderList ID="ReorderList1" runat="server" AllowReorder="true" DataSourceID="DSOrderAdvice" PostBackOnReorder="true" SortOrderField="AdviceOrder" DragHandleAlignment="Left" CallbackCssStyle="callbackStyle"> <itemtemplate> <div class="itemArea"> <asp:Label ID="Label2" runat="server" Text=''<%# Container.DataItemIndex + 1 %>''> <span> - </span> <asp:Label ID="Label1" runat="server" Text=''<%# Bind("AdviceDescription") %>''> </div> </itemtemplate> <reordertemplate> <div class="dragHandle"> </div> </reordertemplate> </div>
有人可以帮忙吗?
解决方案
^ ]文章可能会对您有所帮助.
>
Hi,
I am using the Re-order list ajax control and it is working fine in my laptop, but when I publish it online(godaddy, IIS 7) the item cannot be dragged.
I tried to add handler
<add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
But nothing worked here is my code
<div class="reorderListDemo" style="width: 60%;"> <cc1:ReorderList ID="ReorderList1" runat="server" AllowReorder="true" DataSourceID="DSOrderAdvice" PostBackOnReorder="true" SortOrderField="AdviceOrder" DragHandleAlignment="Left" CallbackCssStyle="callbackStyle"> <itemtemplate> <div class="itemArea"> <asp:Label ID="Label2" runat="server" Text=''<%# Container.DataItemIndex + 1 %>''> <span> - </span> <asp:Label ID="Label1" runat="server" Text=''<%# Bind("AdviceDescription") %>''> </div> </itemtemplate> <reordertemplate> <div class="dragHandle"> </div> </reordertemplate> </div>
Can anyone help?
解决方案
Persisting changes made to the ASP.NET AJAX ReorderList[^]article from CP might help you.
这篇关于Ajax重新排序列表不可拖动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文