Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.4k views
in .NET FTP by
hello,
i wrote try catch to catch exception occurs when using incorrect password or username
try catch is not working.it is still showing exception error message.
is any option available in edftp.handle this condition
try
{

objftp.login(username,password);
}
catch(Exception ex)
{
Response.write(ex.message);
}
please guide
Jim

1 Answer

0 votes
by (161k points)
I don't really understand the question. Perhaps you want to explicitly catch FTPException before Exception, and look at the error message?

hello,
i wrote try catch to catch exception occurs when using incorrect password or username
try catch is not working.it is still showing exception error message.
is any option available in edftp.handle this condition
try
{

objftp.login(username,password);
}
catch(Exception ex)
{
Response.write(ex.message);
}
please guide
Jim

Categories

...