2011年7月5日
摘要: 第一步:添加app.log4net配置文件<?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /></configSections><log4net> <root> 阅读全文
posted @ 2011-07-05 15:34 阿拉伯顶峰 阅读(722) 评论(0) 推荐(0) 编辑
摘要: publicbool UploadImg(byte[] fileBytes,string path) { try { //文件保存目录路径 String savePath ="/upload/"; String dirPath = Server.MapPath(savePath); FileInfo ff =new FileInfo(dirPath+path); if (!ff.Directory.Exists) Directory.CreateDir... 阅读全文
posted @ 2011-07-05 15:15 阿拉伯顶峰 阅读(187) 评论(0) 推荐(0) 编辑