Click here to Skip to main content
15,887,477 members
Home / Discussions / C#
   

C#

 
AnswerRe: MDI Showdialog() problem Pin
Nader Elshehabi10-Apr-07 1:57
Nader Elshehabi10-Apr-07 1:57 
QuestionMDI container Pin
Test27030710-Apr-07 1:34
Test27030710-Apr-07 1:34 
AnswerRe: MDI container Pin
Nader Elshehabi10-Apr-07 1:55
Nader Elshehabi10-Apr-07 1:55 
Questioninsert a Word-Document into an Excel-Sheet Pin
SSSelvi10-Apr-07 0:45
SSSelvi10-Apr-07 0:45 
QuestionCreating a word document Pin
Darren Sim10-Apr-07 0:22
Darren Sim10-Apr-07 0:22 
AnswerRe: Creating a word document Pin
GoFast12410-Apr-07 18:40
GoFast12410-Apr-07 18:40 
GeneralRe: Creating a word document Pin
Darren Sim11-Apr-07 22:09
Darren Sim11-Apr-07 22:09 
QuestionFtpWebRequest Response returns Html for ListDirectory Pin
aenon10-Apr-07 0:19
aenon10-Apr-07 0:19 
Cry | :(( Hi i'm writing an ftp client and i need to get back a list of directories/files on the ftp server
, thanks in advance any immediate help with thing is greatly appreciated as it has become very urgent thanks
(code below examples)

so i'm excepecting
A.zip
B.zip
C.zip

but i'm getting



<title>FTP root at 172.17.2.20.


FTP root at 172.17.2.20.




01/18/06 06:41PM <DIR> <A HREF="/./">.</A>
01/18/06 06:41PM <DIR> <A HREF="/../">..</A>
01/07/03 12:00AM 199 <A HREF="/A.zip">A.zip</A>
01/18/06 01:01AM 225 <A HREF="/B.zip">B.zip</A>
07/26/06 12:32PM 5,902 <A HREF="/C.zip">C.zip</A>






Uri uri = new Uri(Settings.FtpServer);
FtpWebRequest listRequest = (FtpWebRequest)WebRequest.Create(uri);
listRequest.Credentials = new
NetworkCredential(Settings.FtpUser, Settings.FtpPassword);
listRequest.Method = WebRequestMethods.Ftp.ListDirectory;
listRequest.KeepAlive = false;
listRequest.UseBinary = false;
listRequest.UsePassive = false;
FtpWebResponse listResponse =
(FtpWebResponse)listRequest.GetResponse();
StreamReader reader = new
StreamReader(listResponse.GetResponseStream());
Console.WriteLine("List Response:");
Console.WriteLine(reader.ReadToEnd());
AnswerRe: FtpWebRequest Response returns Html for ListDirectory Pin
Sathesh Sakthivel10-Apr-07 1:39
Sathesh Sakthivel10-Apr-07 1:39 
QuestionFtpWebRequest Response returns Html for ListDirectory Pin
aenon10-Apr-07 0:16
aenon10-Apr-07 0:16 
AnswerRe: FtpWebRequest Response returns Html for ListDirectory Pin
BrunoLopes23-Aug-10 18:11
BrunoLopes23-Aug-10 18:11 
QuestionCreate control between 2 form Pin
dinivian9-Apr-07 23:04
dinivian9-Apr-07 23:04 
AnswerRe: Create control between 2 form Pin
Martin#9-Apr-07 23:10
Martin#9-Apr-07 23:10 
GeneralRe: Create control between 2 form Pin
Test27030710-Apr-07 2:12
Test27030710-Apr-07 2:12 
GeneralRe: Create control between 2 form Pin
Martin#10-Apr-07 2:50
Martin#10-Apr-07 2:50 
QuestionSocket Programming Pin
SakthiSurya9-Apr-07 22:05
SakthiSurya9-Apr-07 22:05 
QuestionResourceManager add parameters Pin
Ollie19869-Apr-07 21:50
Ollie19869-Apr-07 21:50 
AnswerRe: ResourceManager add parameters Pin
lmoelleb9-Apr-07 23:51
lmoelleb9-Apr-07 23:51 
Questionfreezing rows in winform datagrid Pin
Anil Mahto9-Apr-07 21:42
professionalAnil Mahto9-Apr-07 21:42 
AnswerRe: freezing rows in winform datagrid Pin
il_masacratore11-Apr-07 21:35
il_masacratore11-Apr-07 21:35 
QuestionSaving Solution As 'othername' Pin
Ranger499-Apr-07 21:41
Ranger499-Apr-07 21:41 
AnswerRe: Saving Solution As 'othername' Pin
Jaiprakash M Bankolli10-Apr-07 1:31
Jaiprakash M Bankolli10-Apr-07 1:31 
QuestionDataGridView CellValidation Pin
719-Apr-07 21:12
719-Apr-07 21:12 
AnswerRe: DataGridView CellValidation Pin
Vasudevan Deepak Kumar9-Apr-07 21:27
Vasudevan Deepak Kumar9-Apr-07 21:27 
GeneralRe: DataGridView CellValidation Pin
7110-Apr-07 2:28
7110-Apr-07 2:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.