I searched google for how to validate URL in C# and most results say using a regular expression. Eventually I found Uri.TryCreate which is a built in method in C# to check if a string is a valid URL
Uri uri = null;
if (!Uri.TryCreate(url, UriKind.Absolute, out uri) || null == uri)
{
//Invalid URL
return false;
}
Reference:
http://msdn.microsoft.com/en-us/library/ms131572(v=VS.90).aspx
Thanks for sharing the Url validation trick !
No había entendido como utilizar la función Uri.TryCreate, hasta que vi tu ejemplo.
Muy útil.
Gracias
No entanto, todo aldeia vai desenvolvendo sua ação. http://8182545661.com/gb/
hgfgh
viagra capsule viagra 100mg india price generic viagra south africa
the cialis promise program tadalafil 10mg dosage cialis online uk
where can i order generic viagra purchase viagra without prescription viagra online usa cheap
where to get free samples of cialis buy cialis in cro tadalafil harmonized code
toronto pharmacy online canadian pharmacy mall good pharmacy
cialis 20mg side effects expired cialis tadalafil tablets 20 mg
where to buy viagra sildenafil over the counter us cheap viagra 150 mg
cialis male enhancement cialis black is it safe what is better viagra or cialis
Adalat Medex Ventolin
cheap viagra for sale online viagra pills for sale online cheap viagra generic 100mg