阅读背景:

MVC 4:可以在验证消息中使用验证变量吗?

来源:互联网 

Many forms in my project have a part number input. Currently in the controller I often times test the part number to see if the part exists or user has access or if the part is obsolete, then based on the condition I reload the view passing a message through a string parameter then viewbag for display to show why the form submit failed. I'm trying to clean this up and instead use model property validation.Many forms in my project have a part number inp




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: