In all cases, the validation takes place on the server, because the user might tamper with the HTTP communication, and post a viewmodel which violates some of the validation rules.
DotVVM can do client validation for the following attributes on the client side:
DotvvmEnforceClientFormat- see details below
Disable client-side validation
If you don't like the client-side validation, you can turn it off in the Configuration.
In such case, everything will be validated only on the server.
config.ClientSideValidation = false;
DotVVM contains a special validation attribute called
It is applied automatically on date and numeric properties, and makes sure that a validation errors is raised when a value entered by the user (e. g. in a TextBox) cannot be parsed. See Formatting dates and numbers for more info.
This attribute does nothing on the server - it only has a client-side behavior. You may not need to use this attribute, except for a case when you need to turn this default behavior off.