Posted by : Sudhir Chekuri Monday, 25 November 2013

C# code in Windows phone 8 apps to display message in message box saying Network not available to update data when internet is not available in phone.



bool isNetwork = NetworkInterface.GetIsNetworkAvailable();
                if (!isNetwork)
                {
                    MessageBox.Show("Network not available to update data");
                }
                else {
//code to work when network is available
                 }



Leave a Reply

Subscribe to Posts | Subscribe to Comments

Followers

Total Pageviews

Powered by Blogger.

Blog Archive

- Copyright © 2013 DevStudent - Metrominimalist - Powered by Blogger - Designed by Johanes Djogan -