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 theEmail
andPassword
properties. - Add the
[EmailAddress]
attribute to theEmail
property.
Message | Line | Column | |
---|---|---|---|