C# 如何使uploadify upload成为可拖放的图像上传工具?

C# 如何使uploadify upload成为可拖放的图像上传工具?,c#,asp.net,uploadify,C#,Asp.net,Uploadify,有没有人有通过拖放上传多个图像的例子。现在我使用uploadify upload上传多个图像并将其绑定到datalist中。它工作得很好 但现在我想将其转换为拖放,所以用户无需点击btn并选择文件,他/她只需选择图像并拖放,然后上传并绑定到数据列表中。好的,您需要一个DragDrop事件集,放置以下代码: void Form_DragDrop(object sender, DragEventArgs e) { // Extract the data from the DataObject

有没有人有通过拖放上传多个图像的例子。现在我使用uploadify upload上传多个图像并将其绑定到datalist中。它工作得很好


但现在我想将其转换为拖放,所以用户无需点击btn并选择文件,他/她只需选择图像并拖放,然后上传并绑定到数据列表中。

好的,您需要一个DragDrop事件集,放置以下代码:

void Form_DragDrop(object sender, DragEventArgs e)
{
    // Extract the data from the DataObject-Container into a string list
    string[] FileList = (string[])e.Data.GetData(DataFormats.FileDrop, false);

    // Do something with the data...

    // For example add all files into a simple label control:
    foreach (string File in FileList)
        this.label.Text += File + "\n";
}

谢谢你的ans,但我很抱歉你的ans不能为我工作…我想让我的图片上传一些类似的例子