I have a repeater control that’s bound to a table in my database. One of the data columns is encrypted, so it returns a byte array. I have a decryption function that I run in order to get the appropriate value. How can I use this function to display the proper value in the repeater control bindings?
EDIT:
For more clarification, I’d want the (possible) equivalent of this:
Text='<%# _encryptor.Decrypt(Container.DataItem.SSN) %>'
I would stick with the Container.DataItem myself to avoid the reflection overhead if you have a large amount of data. It looks like you were close.
Edit: You might need to do an explicit cast here as well