I am trying to list files from a server into a web page for downloading. I created the virtual directory in IIS just fine and it shows all the files in that directory. But, I am still getting "A virtual path is expected." error.
what am I doing wrong?
Thanks in advance
Dim path As String = Server.MapPath("FolderName")
Dim files() As String = System.IO.Directory.GetFiles(path)
what am I doing wrong?
Thanks in advance
Dim path As String = Server.MapPath("FolderName")
Dim files() As String = System.IO.Directory.GetFiles(path)