开发者

MVCControlsToolkit and Validation

开发者 https://www.devze.com 2023-03-31 09:49 出处:网络
Today I installed the MVC3ControlsToolkit from NuGet, and proceeded to add a a DateTimeFor control to a Scaffolding generated page. I only changed one line of code, but the page was no longer visible,

Today I installed the MVC3ControlsToolkit from NuGet, and proceeded to add a a DateTimeFor control to a Scaffolding generated page. I only changed one line of code, but the page was no longer visible, and an exception was thrown, saying validation开发者_Python百科 was happening twice.

If I set UnobtrusiveJavaScriptEnabled to false in my Web.config, I can view the page. Funny thing is that if I restore the page to it's previous state (ie. default config) the error persists.

The error I get is: "Validation type names in unobtrusive client validation rules must be unique. The following validation type was seen more than once: required"

If anyone can shed some light on this, I'd really appreciate it.

0

精彩评论

暂无评论...
验证码 换一张
取 消