I have an employee profile that contains sensitive fields such as passwords and identification numbers. By default, the fields are masked so the values are hidden, but noticeably present. In order to see these fields' data, the user clicks a RadButton configured as a check box to change it's checked state to true (show passwords).
I wired up a function to launch a function:
When that form closes, I get the entered user name and password and authenticate their access. All fine and dandy, works well.
The problem is that after the user does this, I am having trouble on subsequent check changes. The user does not need to be reauthenticated during the session, but gettting the handlers to unhook or hook up hasn't been working. This is what I've tried:
The results are inconsistent in getting the click event of the check box button to fire, adding the handler doesn't seem to work. Any suggestions?
Thanks in advance,
Sn
I wired up a function to launch a function:
function openPasswordWin() {
var oWnd = radopen("frmConfirmShowPassword.aspx", "RadWindow1");
}
When that form closes, I get the entered user name and password and authenticate their access. All fine and dandy, works well.
The problem is that after the user does this, I am having trouble on subsequent check changes. The user does not need to be reauthenticated during the session, but gettting the handlers to unhook or hook up hasn't been working. This is what I've tried:
'This is in the Page_Load method
If Session("ShowPassword") Is Nothing Then
chkShowPassword.Attributes.Remove("onclick")
chkShowPassword.Attributes.Add("onclick", "openPasswordWin(); return false;")
RemoveHandler chkShowPassword.CheckedChanged, AddressOf chkShowPassword_CheckedChanged
Else
If Session("ShowPassword") = "0" Then
chkShowPassword.Attributes.Remove("onclick")
chkShowPassword.Attributes.Add("onclick", "openPasswordWin(); return false;")
RemoveHandler chkShowPassword.CheckedChanged, AddressOf chkShowPassword_CheckedChanged
Else
chkShowPassword.Attributes.Remove("onclick")
AddHandler chkShowPassword.CheckedChanged, AddressOf chkShowPassword_CheckedChanged
chkShowPassword.Attributes.Add("onclick", "chkShowPassword_CheckedChanged")
End If
End If
The results are inconsistent in getting the click event of the check box button to fire, adding the handler doesn't seem to work. Any suggestions?
Thanks in advance,
Sn