摘要: if (File.Exists(HttpContext.Current.Server.MapPath(stuModel.Head)) != false) { //DAL.FaceImg faceImgDal = new DAL.FaceImg(); //DownFile(headFirst + sm 阅读全文
posted @ 2017-05-24 23:51 段十八丶 阅读(248) 评论(0) 推荐(0) 编辑
摘要: [HttpPost] public ActionResult UpFile() { int count = Request.Files.Count; for (int i = 0; i < count; i++) { WebTest.Entity.FileInfo fileInfo = new We 阅读全文
posted @ 2017-05-24 23:51 段十八丶 阅读(381) 评论(0) 推荐(0) 编辑
摘要: Global.asax文件下的程序名与项目名不一致,把namespace 的名字改成与RouteConfig文件下的 namespace 一样就行 阅读全文
posted @ 2017-05-24 23:50 段十八丶 阅读(750) 评论(0) 推荐(0) 编辑
摘要: 没有将views文件夹下的web.config文件一起复制到区域文件夹下. 如果缺少了这个文件就会出现该错误 阅读全文
posted @ 2017-05-24 23:48 段十八丶 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 根据提示在webconfig里面的appstting下添加结点文件 阅读全文
posted @ 2017-05-24 23:48 段十八丶 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 百度编辑器下载地址:http://ueditor.baidu.com/website/download.html 下载对应的版本,我是.net 以.net为例: 下载解压后: 1、新建ueditor文件 把所有东西复制到这个文件里面。注意:包含问题。 2、修改 ueditor.config.js 修 阅读全文
posted @ 2017-05-24 23:46 段十八丶 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Asp.net: 获取虚拟路径地址 HttpContext.Current.Server.MapPath("路径/位置") 将一个数组类型转换为另一个数组类型 Array.ConvertAll<string, int>(majorIDS.Split(','), s => int.Parse(s)) 阅读全文
posted @ 2017-05-24 23:44 段十八丶 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 忘性大,记录一下 List<ServiceTypeParent> ServiceTypeParent = new List<SoOpen.ServiceTypeParent>() { new ServiceTypeParent{ServiceTypeID=ServiceType.ServiceTyp 阅读全文
posted @ 2017-05-24 23:38 段十八丶 阅读(2137) 评论(0) 推荐(0) 编辑