I agree with this method - I use the same thing to check if a user has
access to the web during my applications initialisation.
I simply have a try catch block wrapped around a section of code that
performs a simple webrequest to our servers, if this is succesful I set a
boolean flag to true, if not the catch block sets the flag to false. I
presume you should be able to achive a similar thing with an ftp connection.
I agree with this method - I use the same thing to check if a user has
access to the web during my applications initialisation.
I simply have a try catch block wrapped around a section of code that
performs a simple webrequest to our servers, if this is succesful I set a
boolean flag to true, if not the catch block sets the flag to false. I
presume you should be able to achive a similar thing with an ftp connection.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.