wtbonnell Posted November 24, 2004 Posted November 24, 2004 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... Quote
*Gurus* Derek Stone Posted November 24, 2004 *Gurus* Posted November 24, 2004 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 Quote Posting Guidelines
wtbonnell Posted November 29, 2004 Author Posted November 29, 2004 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... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.