Go homepage(回首页)
Upload pictures (上传图片)
Write articles (发文字帖)

The author:(作者)归海一刀
published in(发表于) 2014/1/30 1:19:39
asp.net使用代码从文件夹里读取图片_[Asp.Net教程]

asp.net使用代码从文件夹里读取图片_[Asp.Net教程]
设计象跑马灯效果时,可以用的上,从文件夹里读取图片
DirectoryInfo imagesfile = new DirectoryInfo(Server.MapPath("../images/"));
Repeater1.DataSource = imagesfile.GetFiles("*.jpg");
Repeater1.DataBind();
引用的时候重要的是路径,路径写成你自己的。


If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)





QQ:154298438
QQ:417480759