2011年5月18日

摘要: .net如今已经很流行,成为赶时髦的程序员的首选。但是,大量刚刚接触.net的程序员的确存在一定的认识误区,这里先介绍一部分。一、.net程序再运行一次就会更快许多人对此的解释是:.net程序第一次运行时会被编译成本地代码,所以再次运行会更快。但遗憾的是,其实每次运行,那些IL都会被翻译一次,不会保留下来。所以并不会变快。但为什么有时候真的觉得快了呢?其实所有程序都是这样,这是Windows再为你缓存用过的组件。真正需要CPU时间的程序,多运行是不会加快速度的。二、.net程序运行起来一定很慢由于存在IL被翻译成本地代码的过程,.net程序的确要消耗一部分时间。但是.net程序仍然具有很高的效 阅读全文
posted @ 2011-05-18 16:06 lovecaviar 阅读(128) 评论(0) 推荐(0)

2011年3月16日

摘要: A Potentially Dangerous Request.Form Value was Detected From The ClientLet's say we are creating a simple form in our ASP.NET MVC 3 web application and there is a Body field on the form where we want to allow HTML Tags.If we do not disable request validation in some manner for this Body field, w 阅读全文
posted @ 2011-03-16 09:57 lovecaviar 阅读(1369) 评论(1) 推荐(0)