asp.net

asp.net 如何读取文件夹下所有图片名称

2013-06-11

System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(@"C:\Program Files\Outlook Express");
        System.IO.FileInfo[] fimore = di.GetFiles();
        foreach (System.IO.FileInfo fi in fimore)
        {
            Response.Write(fi.Name);
            Response.Write("<br>");
        }