DotVVM Academy

Basic validation

This application is not supported on mobile browsers.

Attributes

In this lesson, we'll validate a Log In form.

Attributes from the System.ComponentModel.DataAnnotations namespace provide the easiest way to validate user inputs in DotVVM.


Tasks

  • Add the [Required] attribute to the Email and Password properties.
  • Add the [EmailAddress] attribute to the Email property.
MessageLineColumn