문제

Now that built-in validation is supported with MVC 2 framework, should we be using it instead? Are there any advantages that xVal has over MVC 2 validation?

The main reason I ask is that we have a couple MVC sites that use it, and it appears xVal is no longer being maintained/supported. If this is the case, I'd like to start changing our sites over to use MVC 2 validation.

Thanks in advance.

도움이 되었습니까?

해결책

The jQuery validation scripts included with MVC2 are fully supported by Microsoft, so I would prefer them over third-party scripts, especially ones that no one is actively supporting. The xVal Codeplex site clearly lists xVal as only supported with MVC1.0.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top