Click or drag to resize
ValidatorIsPositiveNumber Method
Determines whether source control's value is positive number.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax
C#
public Validator IsPositiveNumber(
	Object source,
	string errorMessage,
	bool allowEmpty = false
)

Parameters

source
Type: SystemObject
Control to validate
errorMessage
Type: SystemString
It is returned when control's value is not integer
allowEmpty (Optional)
Type: SystemBoolean
If true, an empty value is allowed

Return Value

Type: Validator
See Also