Testing if a web URL resolves

curiouswebster
curiouswebster used Ask the Experts™
on
I have embedded URL's in my solution I need to test with a test tool. What's the C# code that will validate "www.google.com", for example?

Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
curiouswebsterSoftware Engineer

Author

Commented:
I have not run it, but the code looks brilliant! Thanks!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial