All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
C#教程:单线程简介
确保PHP安全,不能违反的四条安全规则_php资料_编程技术
代码前置时页面输出脚本的要注意的问题_JavaScript技术_编程技术
如何用C#写所见即所得的设计器_[Asp.Net教程]
PHP加密文本文件并限制特定页面的存取_[PHP教程]
如何删除SQL Server日志?_[SQL Server教程]
ASP.NET2.0中themes、Skins轻松实现网站换肤_[Asp.Net教程]
SQL2005其中三个版本的比较_[SQL,Server教程]
PHP编程技巧:看实例学正则表达式_[PHP教程]
存储过程-轻松过滤SQL Server连接_[SQL Server教程]
Reading number is top 10 pictures
红楼梦金陵十二钗(2)
Take you to walk into the most true north Korea rural3
好身材能把衣服穿出3D效果
Look for from human art net, is good1
西游四格漫画(三)
不知名的美女素颜照1
王艳写真温柔如水1
Ashlynn Brooke a group sexy photo2
Japanese snow monkeys in the hot spring to keep warm, close their eyes to enjoy
A beautiful girl to bud3
Download software ranking
Sora aoi, the nurse, uniform ,nursing assistant
艳兽都市
Tram sex maniac 2 (H) rar bag11
JSP+Ajax Web development typical examples
1400篇各类破解文章
Prostitutes diary
asp.netWeb服务器高级编程
The cock of the Grosvenor LTD handsome
C++教程第四版
Unix video tutorial20
归海一刀 published in(发表于) 2014/1/30 1:24:42 Edit(编辑)
asp.net读取磁盘文件、删除_[Asp.Net教程]

asp.net读取磁盘文件、删除_[Asp.Net教程]

asp.net读取磁盘文件、删除_[Asp.Net教程]

















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 < Directorys.Length; 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 < Files.Length; 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 < strpicname.Length; i++)
{
File.Delete(Server.MapPath(strpicname[i].ToString()));
}
//循环遍历复选框

































添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.