Код: Выделить всё
FileInfo[] files = new
DirectoryInfo(Server.MapPath("http://www.example.com/images/")).GetFiles();
var exefiles = from FileInfo f in files
where f.Extension == ".jpg"
select f;
foreach (FileInfo f in exefiles)
{ %>
[img]http://www.example.com/images/
Подробнее здесь: [url]https://stackoverflow.com/questions/8737493/cannot-get-file-from-the-external-path-is-not-a-valid-virtual-path-by-asp-net[/url]
Мобильная версия