Determines whether source control's value is valid email.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax public Validator IsEmail(
Object source,
string errorMessage,
bool checkLength = false
)
Parameters
- source
- Type: SystemObject
Control to validate - errorMessage
- Type: SystemString
It is returned when control's value is not valid email - checkLength (Optional)
- Type: SystemBoolean
if true checks whether email length is no longer than SINGLE_EMAIL_LENGTH
Return Value
Type:
ValidatorSee Also