Displaying files and folders

wtbonnell

Active member
Joined
Oct 6, 2003
Messages
32
I am creating a web app (C#.Net) that allows a user to upload documents to a remote server (I am able to do this fine), however, I am unsure of how to display/read the folder and its files on the screen once it is on the server. Any ideas on how to do something like this or know of any good documentation out there?

Thanks for your help...
 
Code:
Dim files() As String = System.IO.Directory.GetFiles(Request.PhysicalApplicationPath & "mirror\\downloads\")
Dim file As String

For Each file In files
	If Not file.EndsWith("default.aspx") Then
		Response.Write("<a href=""http://mirror.incandesoft.com/downloads/" & System.IO.Path.GetFileName(file) & """>" & System.IO.Path.GetFileName(file) & "</a><br />")
	End If
Next
 
Thanks very much.

Does anybody know how to delete a file on the server? I can upload it and display it now, but I just need to be able to delete it?

Thanks for your help...
 
Back
Top