How do I check if a page exists without wrapping it in a try catch
Dim myWebResponse As HttpWebResponse = CType(myWebRequest.GetResponse(), HttpWebResponse)
If the page does not exist then I get a 404 exeption when myWebRequest.GetResponse() fires.
Isnt there some thing like myWebRequest.DoesPageExist() that returns true of false or the status?
This is not possible.
To check if a page exists, you have to execute the web request, and the server will return an error code, if the page does not exist. If the page exists, the server returns the page content. All this is one in a single server request, if you would check first, you would need two server requests, which is unefficient.
When you execute a web request, you should always catch exceptions, because lots of unexpected things could happen. Not only that the page does not exists, the connection could timeout or break, the server itself is down…. and you should catch all these exceptions.