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 theEmailandPasswordproperties. - Add the
[EmailAddress]attribute to theEmailproperty.
| Message | Line | Column | |
|---|---|---|---|
|
|