Description
Implement a credit card verification as a WEB application using ASP.NET. You will get the following information from the user:
The user’s choice of credit card type to be specified using a drop-down list. Card number, as a text box.
Write an ASP.NET function that checks the validity of a credit card specified by the supplied parameters containing the card number and card type. The function returns true or false, depending on whether the credit card name / number combination is found to be valid. If it is not valid, a numeric code is loaded into a global variable, which may be used to index into a global array of error messages as follows.
- “Unknown card type”,
- “No card number provided”,
- “Credit card number is in invalid format”,
- “Credit card number is invalid”,
- “Credit card number has an inappropriate number of digits” etc.



