Skip to main content
All docs
V25.1
  • Tab

    BackwardCompatibilitySettings.DataEditorsEnableValidationForNotModifiedValues Property

    Specifies whether to validate editor values on the server side even if the user does not modify their values on the client side.

    Namespace: DevExpress.Web

    Assembly: DevExpress.Web.v25.1.dll

    NuGet Package: DevExpress.Web

    Declaration

    [DefaultValue(true)]
    public bool DataEditorsEnableValidationForNotModifiedValues { get; set; }

    Property Value

    Type Default Description
    Boolean true

    true, to enable validation of editor values even if their values were not modified by a user on the client side; otherwise, false.

    Property Paths

    You can access this nested property as listed below:

    Object Type Path to DataEditorsEnableValidationForNotModifiedValues
    ASPxWebControl
    .BackwardCompatibility .DataEditorsEnableValidationForNotModifiedValues

    Remarks

    The DataEditorsEnableValidationForNotModifiedValues property allows you to add additional security to data editors in an application. When enabled, this property allows you to validate editor values on the server side even if their values are not modified by users on the client.

    Note

    In version 19.2, we’ve changed this API behavior to improve data security of DevExpress data editors.

    Breaking Change: The ASP.NET Web Forms and Bootstrap Data Editors - Editors validate their values on the server side even if the user made no changes on the client side topic illustrates details and describes how to revert to the previous behavior (degrading data security).

    Example

    The following code illustrates how to disable this functionality:

    Global.asax:

    void Application_Start(object sender, EventArgs e) {  
        ASPxWebControl.BackwardCompatibility.DataEditorsEnableValidationForNotModifiedValues = false;  
    }
    
    See Also