PC Review


Reply
Thread Tools Rate Thread

Browse Server Directory for Download File

 
 
randy.buchholz
Guest
Posts: n/a
 
      10th Jan 2008
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.


 
Reply With Quote
 
 
 
 
Peter Bromberg [C# MVP]
Guest
Posts: n/a
 
      10th Jan 2008
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.
>
>
>

 
Reply With Quote
 
randy.buchholz
Guest
Posts: n/a
 
      11th Jan 2008
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]" <(E-Mail Removed)> wrote in message
news:6569F3C4-F051-48DB-94DD-(E-Mail Removed)...
> 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.
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I browse a FTP directory location in C# and download?-Urgen =?Utf-8?B?U0RSb3k=?= Microsoft ASP .NET 3 9th May 2006 08:48 PM
Browse client Directory to a specific folder and ftp the file from server to client bindu_conacle@yahoo.com Microsoft ASP .NET 1 26th Feb 2006 11:34 AM
Browse client Directory to a specific folder and ftp the file from server to client bindu_conacle@yahoo.com Microsoft VB .NET 0 26th Feb 2006 10:24 AM
Any way to browse and select a directory on the web server in ASP.NET? Eric Microsoft ASP .NET 1 14th Feb 2005 07:34 PM
How can you browse the Active Directory in Windows XP or 2003 server? Richard Gory Windows XP General 1 17th Jan 2004 10:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:10 PM.