Usage
The following code demonstrates the usage of this API. Note that there are breaking changes if you are replacing the previous version.
protected override void OnInit(EventArgs e)Read the original post for implementation details.
{
base.OnInit(e);
this.UsernameField.Validation().RequiredField("username");
this.PasswordField.Validation().RequiredField("password");
}