- mvc 版本将包含验证框架?


有人知道 V1 的验证如何进行吗?我正处于十字路口,是使用现有的框架还是等待 V1?

我的 mvc 开发已被搁置,直到我能找到有关 v1 版本的更多信息以及验证将如何支持对象模型和 ui?有人有信息吗?



来自ASP.NET MVC Design Gallery and Upcoming View Improvements with the ASP.NET MVC Release Candidate

There are many other features and requests coming with the RC as well including: IDataErrorInfo support to enable models to surface validation error messages, as well as richer error validation extensibility to enable you to use your own approach to surface model validation errors to ModelBinders (the IDataErrorInfo support is built on top of this)


>>> Are there plan to provide a way to provide client-side validation based on rules on the model or will this be up to the developer?

We won't have this built-in with V1, although it is possible to build a library that adds it. We are going to look into enabling some scenarios involving this in the future.

Hope this helps,


关于 - mvc 版本将包含验证框架?,我们在Stack Overflow上找到一个类似的问题:

相关文章: - 领域驱动的编程和事件

c# - 使用NLog获取Application_Start()中的错误并重定向到友好页面错误

c# - 我如何访问 ASP.NET MVC 3 模型中的虚拟目录? - .Net CLR 如何识别哪个 .DLL 是 Web 应用程序中的主(启动)DLL? - NHibernate Linq session 管理 - 未将对象引用设置为 TempData 中对象的实例

c# - 提交按钮在 mvc 中不起作用

javascript - 如何在 ASP MVC 中显示 sweetAlert 验证删除对话框 - 从 Controller 重定向到经典 asp 页面时是否可以维护 url? - 如何在 ASP.NET MVC 3 中创建自定义 404 错误页面?