Is there a way I can detect an image URL, like:
http://mysite.com/image.jpg
but with other formats as well? I am using C# with .NET 4.0.
Something like
bool isImageUrl(string URL){
}
edit I meant if the URL points to an image. Eg, the URL
http://mysite.com/image.jpg
is a valid image, but
http://mysite.com/image
is not.