Encrypting data that is bound to a textbox

G

Guest

I have a C# Winform for maintaining application users and passwords. This data is stored on SQL Server and I use a Dataset and SQLDataAdapter to bind the data to controls on this form. On the controls is a textbox for entering passwords

I have code to encrypt decrypt the password but where can I do the conversion - is there an appropriate event I can use to modify the data before it is written back to the database
 
S

Steve Alpert

Dave said:
I have a C# Winform for maintaining application users and passwords. This data is stored on SQL Server and I use a Dataset and SQLDataAdapter to bind the data to controls on this form. On the controls is a textbox for entering passwords.

I have code to encrypt decrypt the password but where can I do the conversion - is there an appropriate event I can use to modify the data before it is written back to the database.
Add a handler that supports Parse and Format into the binding collection
of the text box...

/steveA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top