随笔分类 -  IO

摘要:Bad Request - Request Too Long HTTP Error 400. The size of the request headers is too long. 该错误原因导致 ,是该站点 Cookies 存储太多导致。 使用浏览器 清除该站点所有Cookies 可解决此问题。 阅读全文
posted @ 2016-11-08 10:49 caijinhao 阅读(2352) 评论(0) 推荐(0)
摘要:ImageBrush b = new ImageBrush(); b.ImageSource = new BitmapImage(new Uri("../../Content/dropShadow.jpg",UriKind.Relative)); b.St... 阅读全文
posted @ 2015-07-25 20:47 caijinhao 阅读(132) 评论(0) 推荐(0)
摘要:Office对应ContentType当从浏览器返回一个文件时,需要指定ContentType,以下是Office2007对应的值:"application/vnd.openxmlformats-officedocument.wordprocessingml.template" (for .dotx... 阅读全文
posted @ 2015-07-01 15:15 caijinhao 阅读(182) 评论(0) 推荐(0)
摘要:string folder = HttpContext.Server.MapPath(文件名); if (!Directory.Exists(folder)) { Directory.CreateDirectory(folde... 阅读全文
posted @ 2015-07-01 13:53 caijinhao 阅读(153) 评论(0) 推荐(0)