By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,566 Members | 1,876 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,566 IT Pros & Developers. It's quick & easy.

how to check if URL is valid?

P: n/a
hi.
i have searched on msdn for a while, but found nothing...
is a function available in dot net framework which allows me to check if a
entered URL is valid?
can someone post an example in VB.NET?
thanks
Rolf
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
One option is to make a real request to the URL using HttpWebRequest and
HttpWebResponse and check the status.

"Rolf Mistelbacher" <i_*****@hotmail.com> wrote in message
news:Oe**************@TK2MSFTNGP14.phx.gbl...
hi.
i have searched on msdn for a while, but found nothing...
is a function available in dot net framework which allows me to check if a
entered URL is valid?
can someone post an example in VB.NET?
thanks
Rolf
Nov 21 '05 #2

P: n/a
"Shiva" <sh******@online.excite.com> schrieb:
One option is to make a real request to the URL using HttpWebRequest and
HttpWebResponse and check the status.


That would check if the URL can be reached, but it won't tell you if the URL
is syntactically valid.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.