<script runat="server">
protected void Button1_Click(object sender, EventArgs e)
{
if (PeterBlum.DES.Globals.WebFormDirector.IsValid)
{
}
}
</script>
<h2>Example 1</h2>
One email address allowed.<br/><br/>
<des:TextBox ID="TextBox1" runat="server" />
<des:EmailAddressValidator ID="EmailAddressValidator1" runat="server"
ControlIDToEvaluate="TextBox1"
ErrorMessage="Invalid email address" />
<br/>
<br/>
<h2>Example 2</h2>
This allows multiple email addresses separated by a semicolon and optional space.<br/><br/>
<des:TextBox ID="TextBox2" runat="server" />
<des:EmailAddressValidator ID="EmailAddressValidator2" runat="server"
ControlIDToEvaluate="TextBox2"
ErrorMessage="Invalid email address"
MultipleAddressesAllowed="true" DelimiterCharacter=";" DelimiterAllowsSpaces="true" />
<br/>
<br/>
<des:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click"></des:Button>