冠军

导航

2011年8月1日

ASP.NET MVC 模型绑定的 6 个建议

摘要: 原文名称:6 Tips for ASP.NET MVC Model Binding原文地址:http://odetocode.com/Blogs/scott/archive/2009/04/27/6-tips-for-asp-net-mvc-model-binding.aspxASP.NET MVC 中的 Model Binding 使用起来非常简单。你的 Action 方法需要数据,在传入的 HTTP 请求中携带着你需要的数据,数据可以在请求的表单数据中,还可能在你的 URL 地址本身中。通过 DefaultModelBinder,可以神奇地将表单中的数据和路由中的数据转换到对象中。Mode 阅读全文

posted @ 2011-08-01 18:57 冠军 阅读(5992) 评论(7) 推荐(4) 编辑