protected void ReadFile() //读取文件夹,文件 { string savePath = @"common"; StringBuilder outstring = new StringBuilder(); string absSavePath = Server.MapPath(savePath); string[] Directorys = Directory.GetDirectories(absSavePath + @"/" + P
protected void ReadFile() //读取文件夹,文件
{
string savePath = @"common";
StringBuilder outstring = new StringBuilder();
string absSavePath = Server.MapPath(savePath);
string[] Directorys = Directory.GetDirectories(absSavePath + @"/" + Page.User.Identity.Name);
//for (int i = 0; i
//{
// Response.Write(Directorys[i] + "
");
//}
//Response.Write("Directorys count:" + Directorys.Length + "个
---------
");
string[] Files = Directory.GetFiles(absSavePath + @"" + Page.User.Identity.Name, "*");
outstring.Append("
- ");
-
");
for (int i = 0; i
{
if (Path.GetFileName(Files[i]) != "Thumbs.db")
{
outstring.Append("
}
}
outstring.Append("
Response.Write(outstring.ToString());
}
//删除文件
string[] strpicname = Request["imgids"].Split(new char[] { ',' });
for (int i = 0; i
{
File.Delete(Server.MapPath(strpicname[i].ToString()));
}
//循环遍历复选框
var imgnum = document.getElementsByTagName("input");
var imgids = "";
function getpicid()
{
document.getElementById("hidimgid").value = "";
for (var i=0;i
{
if ( imgnum[i].type == "checkbox" && imgnum[i].name == "picname" && imgnum[i].checked)
{
imgids += imgids == "" ? imgnum[i].value : "," + imgnum[i].value;
}
}
document.getElementById("hidimgid").value = imgids;
}

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

SublimeText3 Linux new version
SublimeText3 Linux latest version

SublimeText3 Mac version
God-level code editing software (SublimeText3)

SublimeText3 English version
Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.