I need to parse content type of typed URL:
- if it's an image then do something.
- if it's a web page then scan this page for images and fill array with images' SRC attributes (and order it by size).
How can i do this using only JS? How can i do this using only ASP.NET and C#?