Tuesday, September 17, 2013

How to tell server error from no-internet when using HttpClient

Hello Chunmiao,


you can handle WebException in catch. Try this code:



catch (WebException ex)
{
//Handle Exception
}



No comments:

Post a Comment