using password column in datagrid?

  • Thread starter Thread starter Kathy Burke
  • Start date Start date
K

Kathy Burke

Hi, I have a users table I would like to maintain using a datagrid. One
of the fields is a password which I would like to be able to change, but
not to SEE in the grid column. How could I do this?

Thanks,

Kathy
 
As I can see, there are two things to mention:

1.) you shouldnt store the passwords readable, if you do so. If you do, use
the FormsAuthentication.HashPasswordForStoringInConfigFile(password,
"SHA1"); method to encrypt it

2.) You can use TemplateColumns to hide(not to show) the password

To create a TemplateColumn use the PropertyBuilder's Column Page/Dialog.
Find the column which contains your password and click on the blue 'convert
this column into a template column'

If you've done so, you'd just remove the entire <%# DataBinder.Eval (...) %>
Code which fills your password columns text attribute (you can add e.g. a
second textbox control to confirm the password)

The Control will post the entered new password as it has done before.

Patrick
 
Back
Top