随笔分类 - DotNET
my post on .net
摘要:早些时候参考http://code.google.com/p/html5uploader/ 写了一个jquery的html5上传控件。
昨天在一个asp.net mvc3的网站中测试时遇到一些很恶心的问题:
1,文件小的时候,可以正常上传。(比如10M左右都可以。我改了web.config,,理论上可以传200M)
2,在上传一个45MB的PSD文件时,报404错误。
404啊。。。一般是web server找不到资源时才会报的错误,怎么可能在文件上传的时候抛出这种类型的异常呢???最要命的是文件比较小的时候是正常的。
chrome 控制台报的错误:
Failed to load resource: the server responded with a status of 404 (Not Found)
阅读全文
摘要:utf-8 编码的文件可以分为no bom 和 bom两种格式。 何谓bom? "ef bb bf" 这三个字节就叫bom,bom的全称叫做"byte order mard".在utf-8文件中常用bom来表明这个文件是utf-8文件,而bom的本意实在utf16中用来表示高低字节序列的。在字节流之前有 bom表示采用低字节序列(低字节在前面),而utf8不用考虑字节序列,所以其实有无bom都可以。utf-8以字节为编码单元,没有字节序的问题。 utf-16以两个字节为编码单元,在解释一个utf-16文本前,首先要弄清楚每个编码单元的字节序。例如收到一个
阅读全文
摘要:参考这里:How to Bin Deploy SQL Compact Edition 4.0 and Razor web projectsWith the release of VS2010 SP1 Beta1, Web Matrix, and Razor QFE, we can build web projects containing SQL Compact Edition 4.0 sdf file and ASP.NET Web Pages with Razor syntax. However, this might be a problem when you are ready to
阅读全文
摘要:I keep using this brand new feature shipped by C# 3.0 a lot since last two years. Some guys doubt its performance when comparing it to the regular .net static method, they don’t do any tests but just...
阅读全文
摘要:我觉得我们把关系型数据库当作铁榔头一样频繁使用的工具了,在软件开发过程中遇到的各种数据存储几乎都离不开关系型数据库(译者注:mysql,ms sql等).经过数年设计优化,性能、安全性以及可管理性的提升,现在的关系型数据库显然已是软件工程进程中的非凡成就。然而关系型数据库在某些数据存储应用场景上却并非最佳选择。 之前的几个月我一直在关注”no-sql”数据存储(译者注:大概指的就是非关系统数据库...
阅读全文
摘要:Welcome to the home of SystemX.NET!Not know about SystemX.NET?It's an open source C# framework Leveraging with many well-known best practices design patterns,such as Repository'T',Unit of Work,and s...
阅读全文