i am opening website on Windows Mobile 6.0 that is hosted on Server.When there is error in connection with server(unable to ping server). I want to show an Message "Retry Again".
So , for this i want to create an Windows Mobile application in C#.Net that continuously ping an IP of server and if there is error in connection i want to show error message.
how can i do this ?
Thanks & Regards ,
Here's an example: http://community.psion.com/support/f/17/p/11891/40253.aspx#40253
I have one more query..
I have to create an Smart device application for Windows Mobile 6.0 in C#.Net that runs automatically at start up and check Following condition :
Because i don't want to loose state of page .
Are you asking whether or not its possible to ping continuously? Or, are you asking for a C# example for pinging?
The answer to the first is sure: you can ping continuously if you want. That may lead to slow performance of the device overall.
I'm not sure why you would (or should) ping continuously. If it were me, I would only ping the server that I was connecting to only after setting up the WiFi connection.
Past that, I would only consider repinging the server if things like socket functions or HttpRequest operations started to fail. I'm assuming you are doing some type of WebService or TCP/IP communication, correct?
In case it helps, let me bring Sean Kennedy's « Wait For Network » demos to your attention.