/p>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
protected void Page_Load(object sender, EventArgs e)
{
FileInfo[] fs1 = (new DirectoryInfo(Server.MapPath("~/A"))).GetFiles();
FileInfo[] fs2 = (new DirectoryInfo(Server.MapPath("~/B"))).GetFiles();
FileInfo[] fs3 = (new DirectoryInfo(Server.MapPath("~/C"))).GetFiles();
FileInfo[] fs4 = (new DirectoryInfo(Server.MapPath("~/D"))).GetFiles();
FileInfo[] fs5 = (new DirectoryInfo(Server.MapPath("~/E"))).GetFiles();
var fs = fs1.Concat(fs2).Concat(fs3).Concat(fs4).Concat(fs5);
Repeater1.DataSource = fs;
Repeater1.DataBind();
}
string GetUrl(object img)
{
FileInfo f = img as FileInfo;
return Page.ResolveUrl("~") + f.DirectoryName.Substring(f.DirectoryName.LastIndexOf("\\") + 1) + "/" + f.Name;
}