code behind
Dim folderPath As String = "\\Server-nt1\testpicture\"
Dim filePaths() As String = Directory.GetFiles(folderPath)
Dim dt As New DataTable
dt.Columns.Add("FileName")
dt.Columns.Add("FilePath")
For Each item As String In filePaths
Dim filename As String = Path.GetFileName((item))
Dim row As DataRow = dt.NewRow()
row("FileName") = filename
row("FilePath") = folderPath + filename
dt.Rows.Add(row)
Next
gvpicture.DataSource = dt
gvpicture.DataBind()
Tag : .NET, Web (ASP.NET), VS 2017 (.NET 4.x), Google Chrome, Web Services