> For the complete documentation index, see [llms.txt](https://docs.gapvelocity.ai/webmap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gapvelocity.ai/webmap/general/frontend/documentation/webforms-angular-components/web-components/base-components/basevalidator-component.md).

# BaseValidator Component

Adds support for \[System.Web.UI.WebControls.BaseValidator] [<mark style="color:orange;">https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.webcontrols.validationsummary?view=netframework-4.8</mark>](https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.webcontrols.validationsummary?view=netframework-4.8)

Abstract base class for validation control.

### **PME Support**

| **Property**                                           | **Get/Set** | **Details**                                                                                                                      |
| ------------------------------------------------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------- |
| ControlToValidate: string                              | Y           | ID of control to validate                                                                                                        |
| ValidationSuccess:boolean                              | Y           | It indicates if control to validate has passed valitation                                                                        |
| ShowMessageBox:boolean                                 | Y           | Establishes if summary errors are showed in message box                                                                          |
| <p>DisplayMode:</p><p>ValidationSummaryDisplayMode</p> | Y           | Establishes the way list of messages will show in the page                                                                       |
| ErrorMessage:string                                    | Y           | Message to show in validator if validation is not ok and text property is empty                                                  |
| ValidationGroup:string                                 | Y           | If is established the name of the validationgroup component only will validate controls with the same validationgroup associated |
| Hidden:boolean                                         | Y           | Establishes if the validator shows or is hides                                                                                   |

&#x20;

### **Methods**

| **Methods**     | **Details**                                                                          |
| --------------- | ------------------------------------------------------------------------------------ |
| validateControl | Method to implement in child class to performs validation on controls.               |
| displayMessage  | Shows value of text property or ErrorMessage property in case text property is empty |

&#x20;

&#x20;

&#x20;
