Villager
Villager

Reputation: 6689

Silverlight - Check Website

How do I check to see if a website exists at a URL in Silverilght? I basically want to ping a web page. However, the WebClient does not seem to work for me. Is there a way to check HTTP response codes in Silverlight? What does the code look like to ping a web site?

Thank you

Upvotes: 1

Views: 1322

Answers (2)

Dave Swersky
Dave Swersky

Reputation: 34810

You could parse out the results from http://downforeveryoneorjustme.com/.

Upvotes: 2

John Fisher
John Fisher

Reputation: 22721

Check out URL Access Restrictions in Silverlight, and here's an example for Using WebClient and HttpRequest.

Upvotes: 1

Related Questions