How to delete a specific file from folder using asp.net

后端 未结 5 674
感情败类
感情败类 2021-02-01 21:12

here\'s the deal I got a datagridviewer which is called gridview1 and a fileupload1 when i upload a file it updates the gridview1 and table in database with the file name and pa

5条回答
  •  轮回少年
    2021-02-01 21:24

    Check the GridView1.SelectedRow is not null:

    if (GridView1.SelectedRow == null) return;
    string DeleteThis = GridView1.SelectedRow.Cells[0].Text;
    

提交回复
热议问题