A newer version of this page is available. Switch to the current version.

CaptchaValidationSettings.ValidationGroup Property

Gets or sets the group of controls for which the editor forces validation when it posts back to the server.

Namespace: DevExpress.Web.Captcha

Assembly: DevExpress.Web.v19.2.dll

Declaration

[DefaultValue("")]
public string ValidationGroup { get; set; }

Property Value

Type Default Description
String

String.Empty

A string value that specifies the group of controls for which the editor causes validation when it posts back to the server.

Property Paths

You can access this nested property as listed below:

Object Type Path to ValidationGroup
ASPxCaptcha
.ValidationSettings.ValidationGroup
CaptchaSettings
.ValidationSettings.ValidationGroup
MVCxCaptcha
.ValidationSettings.ValidationGroup

Remarks

Validation groups allow you to assign validation controls on a page to a specific category. Each validation group can be validated independently from other validation groups on the page. Use the ValidationGroup property to specify the name of the validation group for which the editor forces validation when it posts back to the server.

This property has an effect only when the CaptchaValidationSettings.EnableValidation property is set to true. When you specify a value for the ValidationGroup property, only the validation controls that are part of the specified group are validated when the editor posts back to the server. If you do not specify a value for this property and the CaptchaValidationSettings.EnableValidation property is set to true, all validation controls on the page that are not assigned to a validation group are validated when the editor posts back to the server.

See Also