Return to the menu   Select another DES Module

Demonstrates the ABARoutingNumberValidator

The ABARoutingNumberValidator reviews the text pattern to confirm it matches the rules for American Bankers Association Routing Numbers. Three rules are applied:

  • The text is all digits.
  • The text must be exactly 9 digits.
  • The pattern much match a checksum validation rule specified by the American Bankers Association.
The ABARoutingNumberValidator does not validate the number against actual institution routing numbers. You must supply another piece of software to do that.

Specify the control to evaluate with the ControlIDToEvaluate property.


Controls

Try your own bank's routing number. It's on your checks. Or try this: 211000132



Source Code (C#)

<script runat="server">
protected void Button1_Click(object sender, EventArgs e) { if (PeterBlum.DES.Globals.WebFormDirector.IsValid) { // save your data here } }
</script> Try your own bank's routing number. It's on your checks. Or try this: 211000132<br/> <des:TextBox ID="TextBox1" runat="server"></des:TextBox> <des:ABARoutingNumberValidator ID="ABARoutingNumberValidator1" runat="server" ControlIDToEvaluate="TextBox1" ErrorMessage="Invalid Routing Number" /> <br/> <br/> <des:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click"></des:Button>

Return to the menu   Select another DES Module