Validate Credit Card Numbers (VB.NET)
Category:
C#, VB.NET, ASP.NETType:
ClassesDifficulty:
BeginningAuthor:
Mike WaltersVersion Compatibility: Visual Basic.NET, ASP.NET
More information:
This Class will return true or false values. Valudating any Credit Card Number
Code for calling the Class
Dim i_CardCheck_o As New Card Try If Cardcheck.Checkroute(TextBox1.Text) Then Label1.Text = TextBox1.Text & " = YES" Else Label1.Text = TextBox1.Text & " = NO" End If Catch ex As Exception Label1.Text = TextBox1.Text & "To long or errer" End Try
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: