Writing text to a password control
-
Hello, can anyone help me with the following issue: when using a server side control, type=textbox, textmode=password, i cannot write any values to the box from the codebehind page. The box is just a regular control: However, setting TextBox1.Text doesn't fill the box. Maybe this behaviour is by-design security related, but at least filling the box with a line of ****** to indicate a password was enterd would be nice! Thanks, Dan
-
Hello, can anyone help me with the following issue: when using a server side control, type=textbox, textmode=password, i cannot write any values to the box from the codebehind page. The box is just a regular control: However, setting TextBox1.Text doesn't fill the box. Maybe this behaviour is by-design security related, but at least filling the box with a line of ****** to indicate a password was enterd would be nice! Thanks, Dan
That shouldn't be problem.Where/How do you write this code? Mazy "And the carpet needs a haircut, and the spotlight looks like a prison break And the telephone's out of cigarettes, and the balcony is on the make And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
-
Hello, can anyone help me with the following issue: when using a server side control, type=textbox, textmode=password, i cannot write any values to the box from the codebehind page. The box is just a regular control: However, setting TextBox1.Text doesn't fill the box. Maybe this behaviour is by-design security related, but at least filling the box with a line of ****** to indicate a password was enterd would be nice! Thanks, Dan
-
Yeah it's a bit of a pain.
txtPasswordTextBox.Attributes.Add("value", "PasswordValue");
I Think it's been built this way for security reasons.Thanks! That works great. I guess you're right about security, I assumed the same. Daniel
-
Yeah it's a bit of a pain.
txtPasswordTextBox.Attributes.Add("value", "PasswordValue");
I Think it's been built this way for security reasons.Thanks - rookie stumped by the same behavior. Worked like a charm.