Webform: Password Textbox Server Control

  • Thread starter Thread starter Chris Scragg
  • Start date Start date
C

Chris Scragg

Hi all:

Through a Session variable, I am populating among other things the password
field in a user's profile page (the Webform);

this.TextBoxConfirmPassword.Text = Convert.ToString(Session["sPassword"]);


The odd thing is, when you view the Webform, the password (if even it were
masked) does not indicate visually that the control has been populated. My
TextBox is a server control of type Password.

Can you populate the value of a Password TextBox? Or can it only be entered
manually?

Chris
 
Chris Scragg said:
Hi all:

Through a Session variable, I am populating among other things the
password field in a user's profile page (the Webform);

this.TextBoxConfirmPassword.Text = Convert.ToString(Session["sPassword"]);


The odd thing is, when you view the Webform, the password (if even it were
masked) does not indicate visually that the control has been populated.
My TextBox is a server control of type Password.

Can you populate the value of a Password TextBox? Or can it only be
entered manually?
No , for security reasons you cannot. View/Source in your browser would show
the password in plain text. I have seen it populated via javascript but
again it was in plain text.

SP
 
Back
Top