Home > Web Front-end > JS Tutorial > body text

Exitjs gets the image file name in DataView_extjs

WBOY
Release: 2016-05-16 18:41:00
Original
1202 people have browsed it

1、前台

复制代码 代码如下:



2、后台
复制代码 代码如下:

protected void Page_Load(object sender, EventArgs e)
{
string path = Server.MapPath("images/thumbs");
string[] files = System.IO.Directory.GetFiles(path);
List data = new List(files.Length);
foreach (string fileName in files)
{
System.IO.FileInfo fi = new System.IO.FileInfo(fileName);
data.Add(new { name = fi.Name,
url = "images/thumbs/" fi.Name,
size = fi.Length,
lastmod = fi.LastAccessTime });
}
this.Store1.DataSource = data;
this.Store1.DataBind();
}
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template