DotVVM Academy

Basic validation

This application is not supported on mobile browsers.

Validator

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

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

Tasks

  • 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.
MessageLineColumn