Torna al Thread
Protected Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Dim I As Integer
Dim FilesDeleted As Boolean = False
For I = 0 To FileList.Rows.Count - 1
Dim cb As CheckBox = DirectCast(FileList.Rows(I).Cells(0).FindControl("RowLevelCheckBox"), CheckBox)
If cb.Checked Then
'Do the deletion here
Dim MyFileInfo As New FileInfo(Server.MapPath("~/File") + FileList.Rows(I).Cells(1).Text)
MyFileInfo.Delete()
FilesDeleted = True
End If
Next
End Sub