Browse Server Directory for Download File
am 10.01.2008 19:21:29 von randy.buchholz
Hi Group
I'm working on file upload and download. Right now I'm using the file
system, next SQL Server. I have most everthing working except for providing
a way to allow users to browse for a server directory to select the needed
download document. Environment is C#/ASP.Net 2.0 and my files are in a
virtual directory (though I can hit the file system directly if needed).
Thanks.
RE: Browse Server Directory for Download File
am 10.01.2008 21:41:03 von pbromberg
Your app can use Directory.GetFiles to get a filelist of the contents of a
given folder, and you can display it in a databound control as hyperlinks.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
"randy.buchholz" wrote:
> Hi Group
> I'm working on file upload and download. Right now I'm using the file
> system, next SQL Server. I have most everthing working except for providing
> a way to allow users to browse for a server directory to select the needed
> download document. Environment is C#/ASP.Net 2.0 and my files are in a
> virtual directory (though I can hit the file system directly if needed).
> Thanks.
>
>
>
Re: Browse Server Directory for Download File
am 11.01.2008 16:20:04 von randy.buchholz
Thanks Peter. I had looked at that but missed using Server.MapPath to get
me where I needed to go. While looking at Directory.GetFiles I found
DirectoryInfo.GetFiles which provides some additional info.
"Peter Bromberg [C# MVP]" wrote in message
news:6569F3C4-F051-48DB-94DD-A186C9C09C41@microsoft.com...
> Your app can use Directory.GetFiles to get a filelist of the contents of a
> given folder, and you can display it in a databound control as hyperlinks.
> -- Peter
> Site: http://www.eggheadcafe.com
> UnBlog: http://petesbloggerama.blogspot.com
> MetaFinder: http://www.blogmetafinder.com
>
>
> "randy.buchholz" wrote:
>
>> Hi Group
>> I'm working on file upload and download. Right now I'm using the file
>> system, next SQL Server. I have most everthing working except for
>> providing
>> a way to allow users to browse for a server directory to select the
>> needed
>> download document. Environment is C#/ASP.Net 2.0 and my files are in a
>> virtual directory (though I can hit the file system directly if needed).
>> Thanks.
>>
>>
>>