Test Url Exists - July 2012
Recently I needed to test the existence of a Url. I searched the web and found some inspirational code which I converted from C# to VB.Net. I encapsulated the code in a class module which I call 'cExistsUrl'. The process is described in this July 2012 tip-of-the-month. I created an Asp.Net, VB.Net application to demonstrate the process. Click here to run the demo.
The Asp.Net, VB.Net, VS/2008 project Test Url Exists is documented here.
The entered Url is tested and returns an 'exists' message.
The entered Url is tested and returns a does not exist message.
I found that a not exist condition is returned if the site is password protected.
I found some code on the web that inspired this tip. Click here to view that code. Scroll down and look for Solution 2.
Download the source code by clicking on the zipped file name. Click here to run the demo application.
Download - Source Zipped File Size VS/2008 VB.Net, ASP.Net Solution ExistsUrl.zip 60k
Previous Tip Tip Index Next Tip