aspnet-devexpress-dot-web-dot-aspxbutton-31162853.md
Gets or sets the ID of the naming container for whose controls the button causes a validation.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue("")]
public string ValidationContainerID { get; set; }
<DefaultValue("")>
Public Property ValidationContainerID As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A string value that specifies the naming container’s ID.
|
Use the ValidationContainerID property to specify the ID of the naming contaner for whose child controls the button forces a validation when it is clicked.
This property has effect only when the ASPxButton.CausesValidation property is set to true. When you specify a value for the ValidationContainerID property, only the verifiable controls that are contained within the specified naming container are validated when the button is clicked.
The functionality of the ValidationContainerID property is affected by whether or not the ASPxButton.ValidationGroup property is assigned. The possible cases of synergy between these two properties are listed below.
Note that a group of input controls can also be validated on the client by using the following client static methods: ASPxClientEdit.ValidateEditorsInContainer, ASPxClientEdit.ValidateEditorsInContainerById, ASPxClientEdit.ValidateGroup.
See Also