Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/37.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
Asp.net 从GridView中删除行后如何执行命令_Asp.net_Vb.net - Fatal编程技术网

Asp.net 从GridView中删除行后如何执行命令

Asp.net 从GridView中删除行后如何执行命令,asp.net,vb.net,Asp.net,Vb.net,我试图处理RowCommand。但它是在删除之前执行的 Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand if e.CommandName = "delete" 'do something here

我试图处理
RowCommand
。但它是在删除之前执行的

Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand
    if e.CommandName = "delete"
        'do something here
    End If
End Sub

您可以创建自己的命令,然后根据需要对操作进行排序。看看这个: