A
Andreas Semmelmann
Hello Folks.
I have a DataGrid displaying the conten of a SQL-Database. In this table
exist a Field wich contains Passwords. Firstly I´d liked to change the
Password over the DataGrid. Secondly I´d like to hide the Input of the PW to
the User. I´ve tried the following:
Sub dg_ItemCreated(Sender As Object, E As DataGridItemEventArgs)
Response.Write("<h1>Test</h1>")
If E.Item.ItemType = ListItemType.EditItem Then
Dim tb_pwd As TextBox = CType(E.Item.Cells(2).Controls(0), TextBox)
tb_pwd.Textmode = "Password"
BindData()
End If
End Sub
But this would´nt work. The Event was not fired at all. How can I hide the
Password while the User is typing it in? (like asp:textbox
textmode="Password"). It would be more helpful for me, if the solutions are
in VB.NET, because I`m very new to .NET.
Thanks for your help.
I have a DataGrid displaying the conten of a SQL-Database. In this table
exist a Field wich contains Passwords. Firstly I´d liked to change the
Password over the DataGrid. Secondly I´d like to hide the Input of the PW to
the User. I´ve tried the following:
Sub dg_ItemCreated(Sender As Object, E As DataGridItemEventArgs)
Response.Write("<h1>Test</h1>")
If E.Item.ItemType = ListItemType.EditItem Then
Dim tb_pwd As TextBox = CType(E.Item.Cells(2).Controls(0), TextBox)
tb_pwd.Textmode = "Password"
BindData()
End If
End Sub
But this would´nt work. The Event was not fired at all. How can I hide the
Password while the User is typing it in? (like asp:textbox
textmode="Password"). It would be more helpful for me, if the solutions are
in VB.NET, because I`m very new to .NET.
Thanks for your help.