Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/257.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 拖放GridView事件未触发ASP.NET_C#_Asp.net_Gridview - Fatal编程技术网

C# 拖放GridView事件未触发ASP.NET

C# 拖放GridView事件未触发ASP.NET,c#,asp.net,gridview,C#,Asp.net,Gridview,我必须在网格视图中实现排序,我目前使用的是ASP.NET4.0。在搜索过程中,我在codeproject中找到了以下帮助实现它的内容。我不能启动DragAndDrop事件。我已经使用using实用程序在ASP.NET页面中添加了参考和链接。下面是我的代码: 在ASPX页面中 <cc1:DragDropGridView ID="_GridDragAndDrop" runat="server" AutoGenerateColumns="false" CssClass="ValGridForm"

我必须在网格视图中实现排序,我目前使用的是ASP.NET4.0。在搜索过程中,我在codeproject中找到了以下帮助实现它的内容。我不能启动DragAndDrop事件。我已经使用
using实用程序在ASP.NET页面中添加了参考和链接。下面是我的代码:

在ASPX页面中

<cc1:DragDropGridView ID="_GridDragAndDrop" runat="server" AutoGenerateColumns="false" CssClass="ValGridForm" OnDragAndDrop="_GridDragAndDrop_DragAndDrop" >
            <Columns>
               .
               .
               .
            </Columns>
            <EmptyDataRowStyle CssClass="label" />
            <EmptyDataTemplate>
                No record Found.
            </EmptyDataTemplate>
</cc1:DragDropGridView>
问题
当我拖动一行并将其释放到下面某个位置时,不会命中拖放事件。页面加载,这意味着它确实进行了回发,但没有命中它应该命中的事件。我不知道我在哪里解决这个问题。

事实上,你没有提供任何关于你的问题的真实信息。你的错误是什么?一切正常吗?可能不会,但什么不起作用?你有一个准备好运行的教程,而不是运行给你?你改变什么而不跑?你得到了什么javascript错误?页面上没有报告错误,既没有基于javascript的错误,也没有任何调试错误。我有两个按钮,它们绑定了两个JQuery函数,当我单击它们时,它们会运行,但一旦发生回发,函数就会重新加载,因此它不会完成任务。
protected void _GridDragAndDrop_DragAndDrop(object sender, Utility.DragAndDropEventArgs e)
    { //Added a breakpoint here. But it does not hit here.

    }