Repeater怎么获取文件夹所有图片并一一绑定出来

2024-12-04 17:18:37
推荐回答(1个)
回答1:



/>



Repeater1.DataSource = System.IO.Directory.GetFiles(MapPath("/Photo"));
Repeater1.DataBind();