-2
나는 photogallery라는 폴더가 포함 된 ftp에서 내 웹 사이트를 호스팅했습니다. 이제는 이 필요합니다. 내 페이지가 ftp 폴더 photogallery의 모든 이미지를 요청할 때 시퀀스로 표시되어야합니다. 감사합니다. 미리.ftp에서 asp 웹 페이지로 이미지로드
string[] filesindirectory = Directory.GetFiles(Server.MapPath("~/Photogallery"));
List<String> images = new List<string>(filesindirectory.Count());
foreach (string item in filesindirectory)
{
images.Add(String.Format("~/Photogallery/{0}", System.IO.Path.GetFileName(item)));
}
RepeaterImages.DataSource = images;
RepeaterImages.DataBind();
이것은 내가 한 일이지만 여전히 이미지가 표시되지 않습니다.
가 같은 서버에서이 FTP가 이미지를 보여주기 위해 가상 디렉터리 경로가 결합 할 수 있습니다? 또는 다른 ftp 위치 – nunespascal
~ ~/photogallery 같은 서버에 있습니다. – Anand