<script runat="server">
protected void Button1_Click(object sender, EventArgs e)
{
if (PeterBlum.DES.Globals.WebFormDirector.IsValid)
{
}
}
</script>
<des:TextBox ID="TextBox1" runat="server" />
<des:CreditCardNumberValidator ID="CreditCardNumberValidator1" runat="server"
ControlIDToEvaluate="TextBox1"
ErrorMessage="Invalid credit card number" />
<br/>
<br/>
<des:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click"></des:Button>