Repository navigation
Clarification on whether the new Blazor SSR validation JS supports MVC/Razor Pages markup as well? #70026
|
I’m looking at the Blazor SSR validation work in #51040 / #66420 / #66441. The PR description calls out that the server renders the same Any clarification would be helpful! Thanks! |
Replies: 1 comment 1 reply
|
Not with the current implementation. The So the |
Not with the current implementation. The
data-val-*rendering described in #66441 and #66420 is the Preview 5 design. #67324 (merged on 16 Jul 2026, milestone 11.0-preview7 and linked from the Preview 7 release notes) replaced it: rules are no longer rendered asdata-val-*attributes on each input. Instead each static SSR form gets a single<blazor-client-validation-data data-rules="...">element carrying the rules as JSON, and the[data-val=true]scanner is gone. At v11.0.0-rc.2 the adapter insrc/Components/Web.JS/src/Validation/Adapters/BlazorAdapter.tsonly ingests that element, and the server side (ClientValidationDatain Components/Web) renders it only for anEditFormwhoseEditContext