sbornstein2
asked on
ASP.Net/C# - I want to replace everything but the last 4 characters of a string to "*".
Hello all. I need to take a value such as SSN and replace all the values of the string other than the last 4 numbers. For example, 111111111 to *****1111. Then I need to also keep the actual value though for an update. Any ideas?
Are you wanting to change the value for display?
ASKER
Learned one that is correct I want to change the value of the SSN where it shows just the last 4 digits but then I do need to still have the actual value itself to store on an update. The page is SSL but they want this.
How are you displaying the SSN on the page?
ASKER
right now it comes back in free text via a web service call. I need to take that value and mask it and then display it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.