DotVVM Academy

Basic validation

This application is not supported on mobile browsers.


In the View, we can use the Validator control to show validation messages from the attributes:

<dot:Validator Value="{value: Email}"
               ShowErrorMessageText="true" />


  • Add a Validator control next to each TextBox.
  • Make sure to set ShowErrorMessageText to true.
  • Bind their Value property to the same properties as their adjacent TextBox Text property.