Featured On ...

asp.net

totalasp.co.uk

fuzzysoftware.com

devdex.com

123aspx.com

dotnetfreaks.com

411asp.net

and more ...

ValidatorEntryNumericComparer

Full path

MadWidgets.Validation.ValidatorEntryNumericComparer

Declaration

public class ValidatorEntryNumericComparer : ValidatorEntryComparer

Hierarchy

Click on the selected class to view any properties or methods that may be accessible through an instance of this class through inheritance.

ValidatorEntryNumericComparer

Overview

The ValidatorEntryNumericComparer class is used to validate the comparison between two related objects (e.g. form fields) whose values represent numbers (integers or floating point numbers). You can optionally include a tolerance or difference value in the constructor of this class allowing for the values of the two objects to be within a given range.

When a difference value is supplied, this value is added to the value of the first object passed to the constructor (o1) before making the comparison between the two objects as determined by the ComparisonMethod constant.

Constructors


Constructors

ValidatorEntryNumericComparer

public ValidatorEntryNumericComparer(object o1, object o2, ComparisonMethod cm, string sMessage, string sHighlightElement)

Creates a ValidatorEntryNumericComparer based on the two input objects o1 and o2 and a compare method together with a message and a client-side highlight element signature.

ValidatorEntryNumericComparer

public ValidatorEntryNumericComparer(object o1, object o2, ComparisonMethod cm, string sMessage, string sHighlightElement, double dDifference)

Creates a ValidatorEntryNumericComparer based on the two input objects o1 and o2 and a compare method together with a message, a client-side highlight element signature and a difference value.

© 2002 - 2008 Copyright, Disclaimer and Privacy Statement