|
-
Jun 29th, 2011, 09:46 AM
#1
Thread Starter
New Member
Getting a list of FTP directory files on my form in VB
Hello everyone,
I am trying to program my application in VB.Net so that when a user goes to my 'FTP Out' page, the page straight away loads with a list of the files that are on my FTP site.
I know I will have to get a connection going with my FTP site but how do I actually go about getting the list of details to show on my form?
At the moment, all I can think of is calling 'Methods.Ftp.ListDirectoryDetails'
All help and advice will be greatly appreciated.
Thanks,
Dan
-
Jun 29th, 2011, 10:30 AM
#2
Re: Getting a list of FTP directory files on my form in VB
-
Jun 29th, 2011, 11:06 AM
#3
Thread Starter
New Member
Re: Getting a list of FTP directory files on my form in VB
Hi MattP,
Thank you for the link, I have used it in my code and am now getting the following error:
HttpException was unhandled by user code
I then see a list of the files in the FTP directory but at the end of the list it says " ' is not a valid virtual path.
This may be a simple thing but was wondering if you or anybody else could explain this to me at all please? It is pointing to the 'Response.WriteFile(ftpReader.ReadToEnd())' part of my script.
Thank you in advance for the help.
Dan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|