摘要: 1.在FileUpload控件添加一个属性 webkitdirectory=""就可以上传文件夹了 2.检测文件夹下所有子文件 string DirectoryName = FileUpload1.PostedFile.FileName; string path = Server.MapPath("/import/Import_image/" + Director... 阅读全文
posted @ 2017-05-12 10:46 万年雪霜 阅读(897) 评论(0) 推荐(0) 编辑
摘要: 首先: 引用 ICSharpCode.SharpZipLib.dll,百度下载 然后引用命名空间: using ICSharpCode.SharpZipLib.Zip;using ICSharpCode.SharpZipLib.Checksums; 我自己的代码: //取数据dt string path... 阅读全文
posted @ 2017-04-19 14:44 万年雪霜 阅读(823) 评论(4) 推荐(0) 编辑
摘要: 添加命名空间 using System.Xml; 我自己的代码(添加其中的节点) XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(Server.MapPath("userTable.xml")); XmlNode root = xmlDoc.S 阅读全文
posted @ 2017-04-18 11:05 万年雪霜 阅读(2190) 评论(0) 推荐(0) 编辑
摘要: 方法一: 1、首先建立一个按钮,在后台将调用或处理的内容写入button_click中; 2、在前台写一个js函数,内容为document.getElementById("btn1").click() 或者document.getElementById("btn1").onclick() 3、在前台 阅读全文
posted @ 2017-04-17 17:54 万年雪霜 阅读(1084) 评论(0) 推荐(0) 编辑