Password Fields

  • Thread starter Thread starter Josh
  • Start date Start date
Does any one know how to put text into a password field.


Same as any other text field.... < ... value="hello world" ... >
 
Same as any other text field.... < ... value="hello world" ... >

I've got it sussed now, thanks.

You idea did not work, although the text property is set, it does not
display it. Its neccessary to set the text property, and use

txtBox.Attributes.Add("Value",someString)

With both set it displays the asterisks and stores the Text value.
 
Setting the Text property of the password-mode text box may not work. You
have to use the Attributes collection of the textbox.

txtPwd.Text = "mypwd"; // This will not pre-populate the password field
txtPwd.Attributes.Add ("VALUE", "mypwd"); // but this will...

However, sending a default password is not recommended.

HTH

Does any one know how to put text into a password field.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top