Serenity
Serenity

Reputation: 5098

Default text appearing in the password text box ..how to make it disappear?

Even though "Text" property is set to Text=""

asp:TextBox MaxLength="256"  runat="server" ID="passwordTxt" TextMode="Password" Text="" 

I also tried this on Page_load :-

passwordTxt.Text="";

I am still seeing 5 dots in the Password text box..How to make it go away ? Why is it there anyway ? like why ?

[EDIT]

I was not able to see Bold, Code tag buttons when posting this ques..so couldnt include my code lines inside of code tags..whats wrong with this website ??

[EDIT2] ok I can see the buttons now

Upvotes: 0

Views: 586

Answers (2)

SimonAntony
SimonAntony

Reputation: 84

To stop firefox auto prompting to save this data in a form, add the following property to the form tag

autocomplete="off"

i.e. : form id="myForm" runat="server" autocomplete="off"

Upvotes: 0

Noon Silk
Noon Silk

Reputation: 55082

It's probably the browser auto-populating for you. View the source, it will be empty.

Upvotes: 2

Related Questions