Dim fil As System.IO.FileInfo()
Dim ins As System.IO.DirectoryInfo = New System.IO.DirectoryInfo(Server.MapPath("~/upload" ))
fil = ins.GetFiles("*.*")
For i As Integer = 0 To fil.Length - 1
Dim fileName As String
Dim fileFullName As String
fileName = fil(i).Name
fileFullName = fil(i).FullName
dt0.Rows.Add()
dt0.Rows(i)(0) = fileName
Next
Grid1.DataSource = dt0
Grid1.DataBind()作者: zzn199121 时间: 2013-1-15 14:13
THANK YOU 作者: sjxwb 时间: 2013-1-15 23:54
You are welcome.