W
Winshent
I am building an e commerce site.
I want to list credit customer card numbers in a dropdown list so that
the customer can select a payment method. In the DB i am storing the
last 4 CC digits as well as the length of the CC number (the CC Number
will be stored encrypted and deleted after copying to local systems).
I want to display the payment method as '**** **** **** 1234' for a
card with card number of 16 digits that was previously used for
payment.
As credit cards do not all have 16 digits, i have a function to convert
each digit to * and then add the last 4 digits on.
I want to display this in my dropdown list. Whats the best way of doing
this?
I have looked at adding a new column to a datatable and setting the
expression but i dont think it can be done.
Do i ahve to do something like create an array from a
dataset/datareader and then manipulate from there ?
Thanks
Vincent
I want to list credit customer card numbers in a dropdown list so that
the customer can select a payment method. In the DB i am storing the
last 4 CC digits as well as the length of the CC number (the CC Number
will be stored encrypted and deleted after copying to local systems).
I want to display the payment method as '**** **** **** 1234' for a
card with card number of 16 digits that was previously used for
payment.
As credit cards do not all have 16 digits, i have a function to convert
each digit to * and then add the last 4 digits on.
I want to display this in my dropdown list. Whats the best way of doing
this?
I have looked at adding a new column to a datatable and setting the
expression but i dont think it can be done.
Do i ahve to do something like create an array from a
dataset/datareader and then manipulate from there ?
Thanks
Vincent