Example #1
0
 protected override void Check(ValidityState state)
 {
     base.Check(state);
     state.IsValueMissing = IsRequired && String.IsNullOrEmpty(Value);
 }
 protected void ResetValidity(ValidityState state)
 {
     state.IsCustomError = !String.IsNullOrEmpty(_error);
 }
 public HtmlFormControlElement(Document owner, String name, String prefix, NodeFlags flags = NodeFlags.None)
     : base(owner, name, prefix, flags | NodeFlags.Special)
 {
     _vstate = new ValidityState();
     _labels = new NodeList();
 }
 protected virtual void Check(ValidityState state)
 {
     ResetValidity(state);
 }