Jump to content
Xtreme .Net Talk

in visual basic how can i tell if a web link works or not?


Recommended Posts

  • *Gurus*
Posted

You could establish a socket class and manually send a HEAD request for the page to the webserver, that would do it, without having to download all the content on the page.

 

The easier method would be to use WebClient to download the whole page and catch an exception if the page wasn't found. This would be slower.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...