Content Studio 5 technical overview

EmailValidator Control Overview

Inherits from RegularRegularExpressionValidator to provide a validator control for email validation. The EmailValidator control can be configured to use different patterns to meet the target requirements.


It's common to provide textboxes where the user supplies an email address, and to validate that the input is correct. The first step in the validation process is to verify that the provided address looks real. The EmailValidator control provides this functionality using regular expressions.

Note that an empty value is not accepted, this is a different behavior compared to most validation controls.


The following code will validate that the input in a textbox as an email.

<asp:TextBox RunAt="Server" id="tbEmail" /> 
<csx:EmailValidator RunAt="Server" ControlToValidate="tbEmail" ErrorMessage="You must enter an email address." />