Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

in my windows mobile 6 application before login i wanted to check whether network is connected or not, because inside i am using web service so if no network it is giving error.So how can we check whether network is connected or what in my application?

thanks
Ginnas
Posted

1 solution

For example, ping some server which is most likely to be 100% uptime: http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ping%28v=vs.110%29.aspx[^].

—SA
 
Share this answer
 
Comments
ginnas 5-Dec-13 0:25am    
Hi,
thanks for response, it's working


Thanks
Ginnas
Sergey Alexandrovich Kryukov 5-Dec-13 0:54am    
Good. Will you then accept the answer formally (green "Accept" button)?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900