Click here to Skip to main content
15,906,463 members
Home / Discussions / C#
   

C#

 
AnswerRe: make program work as monitor to store each word and text ? Pin
Colin Angus Mackay10-Apr-07 3:05
Colin Angus Mackay10-Apr-07 3:05 
AnswerRe: make program work as monitor to store each word and text ? Pin
Ahmed R El Bohoty10-Apr-07 6:12
Ahmed R El Bohoty10-Apr-07 6:12 
AnswerRe: make program work as monitor to store each word and text ? Pin
Pete O'Hanlon10-Apr-07 3:17
mvePete O'Hanlon10-Apr-07 3:17 
GeneralRe: make program work as monitor to store each word and text ? Pin
Colin Angus Mackay10-Apr-07 3:35
Colin Angus Mackay10-Apr-07 3:35 
GeneralRe: make program work as monitor to store each word and text ? Pin
Ahmed R El Bohoty10-Apr-07 4:52
Ahmed R El Bohoty10-Apr-07 4:52 
GeneralRe: make program work as monitor to store each word and text ? Pin
Dan Neely10-Apr-07 4:58
Dan Neely10-Apr-07 4:58 
QuestionDataGridView keydown event Pin
7110-Apr-07 2:25
7110-Apr-07 2:25 
AnswerRe: DataGridView keydown event Pin
_mubashir10-Apr-07 2:31
_mubashir10-Apr-07 2:31 
QuestionHow to create textbox dynamically Pin
indiaone10-Apr-07 2:24
indiaone10-Apr-07 2:24 
AnswerRe: How to create textbox dynamically Pin
_mubashir10-Apr-07 2:27
_mubashir10-Apr-07 2:27 
AnswerRe: How to create textbox dynamically Pin
sundeeppatil10-Apr-07 11:25
sundeeppatil10-Apr-07 11:25 
QuestionMDI Showdialog() problem Pin
Test27030710-Apr-07 1:49
Test27030710-Apr-07 1:49 
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 
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 
Cry | :(( Hi,
this piece of code is meant to return a list of directories/files on the ftp server it works like a bom on my machine but when i test it on connecting to our an actual ftp site in returns the directory listing in html format, can anyone please help, because i'm expecting the listing to be in plain text format, thanks in advance this i urgent and any immediate help is greatly appreciated.

i'm excpecting
e.g
A.zip
B.txt
C.dat

not




<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
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 

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.