摘要: ViewData 和 ViewBag都是页面级别的生命周期,TempData--Passing data between the current and next HTTP requestsTempData默认是实现方式--存在session中,所以结论很简单,能不用就不用。。要么负载时就麻烦了。P... 阅读全文
posted @ 2015-01-24 20:27 英雄饶命啊 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 通过 AntiForgeryWorker的GetHtml()方法生成html --input hide元素--value=要验证的值,并生成cookie--用于保存需要验证的值。类中的AntiForgeryDataSerializer--用作序列化与反序列化验证的值。internal class A... 阅读全文
posted @ 2015-01-24 19:17 英雄饶命啊 阅读(523) 评论(0) 推荐(0) 编辑