Click here to Skip to main content
15,941,755 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created silverlight project.That is dashboard information project. I created two types of dashboard, One is Dashboard.Xaml another one is Dashboard.Html.

Now requirement is If internet connection available means we show Dashboard.Html other wise if internet connection is not available means we show Dashboard.Xaml

How to check Internet connection is connected or not connected in c#?

How to trigger automatically internet is Connected means-Dashboard.Html or not-connected means-Dashboard.Xaml?

Please Help Me...

1 solution

if you need internet for Dashboard.Xaml, then load that page first. if internet connection not available, you will receive an exception , based on the error code and details you can load html page or display error message.
Share this answer

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