public override void ApplyBrowserValidation(BrowserValidationConfiguration config, InputElementType inputType,
                                             IBrowserValidationGenerator generator, IDictionary attributes,
                                             string target)
 {
     base.ApplyBrowserValidation(config, inputType, generator, attributes, target);
     generator.SetAsNotSameAs(target, this.propertyToCompare, this.BuildErrorMessage());
 }
예제 #2
0
        /// <summary>
        /// Applies the browser validation by setting up one or
        /// more input rules on <see cref="IBrowserValidationGenerator"/>.
        /// </summary>
        /// <param name="config">The config.</param>
        /// <param name="inputType">Type of the input.</param>
        /// <param name="generator">The generator.</param>
        /// <param name="attributes">The attributes.</param>
        /// <param name="target">The target.</param>
        public override void ApplyBrowserValidation(BrowserValidationConfiguration config, InputElementType inputType,
                                                    IBrowserValidationGenerator generator, IDictionary attributes,
                                                    string target)
        {
            base.ApplyBrowserValidation(config, inputType, generator, attributes, target);

            generator.SetAsNotSameAs(target, PropertyToCompare, BuildErrorMessage());
        }