Verify syntax of an URl

Verify syntax of an URl

Post by c2VyZ2UgY2 » Sat, 19 Aug 2006 18:28:02


Der all,

I have a text box where my user introduce a URL of type Http:\\.... or
Ftp:\\...
I need to verify that only this type of syntax is valid for my text box

How can I perfomr that ??

Thansk for help
 
 
 

Verify syntax of an URl

Post by MVP - AD » Sat, 19 Aug 2006 23:19:24

Did you look at the Uri.IsWellFormedUriString static method?

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.yqcomputer.com/

 
 
 

Verify syntax of an URl

Post by c2VyZ2UgY2 » Sun, 20 Aug 2006 01:33:02

no,
Ia was stzarting using regEx as everyone says that it is the key to verify
syntax before anything to prevent undesirable string. But usng it cannot find
the correct way to do it..

regards
 
 
 

Verify syntax of an URl

Post by outla » Thu, 24 Aug 2006 12:07:20

> I have a text box where my user introduce a URL of type Http:\\.... or


Did you take a look at PathIsURL() ?

http://www.yqcomputer.com/

m
http://www.yqcomputer.com/