I am creating a Registration form and following is the design code of Password and Confirm password field
<tr>
<td class="style14">
<asp:Label ID="lblPass" runat="server" Text="Password"></asp:Label>
<asp:TextBox ID="txtPass" runat="server" Width="150px" EnableTheming="True"
TextMode="Password" ></asp:TextBox>
</td>
</tr>
<tr>
<td class="style23">
<asp:Label ID="lblCnfPass" runat="server" Text="Confirm Password"></asp:Label>
<asp:TextBox ID="txtCnfPass" runat="server" Width="150px" TextMode="Password"
CausesValidation="True"></asp:TextBox>
<asp:CompareValidator ID="CompareValidator1" runat="server"
ErrorMessage="Paswword doesnot Match" ValidationGroup="register" ControlToCompare="txtCnfPass"
ControlToValidate="txtPass">Paswword doesnot Match</asp:CompareValidator>
</td>
<td>
</td>
</tr>
The problem is when I run the page the password textbox is filled with some values, as in the image. How do I remove that? One more point is that when I changed TextMode property from password to singleline then there was no such problem!
The problem basically is due to Mozilla Firefox browser. Mozilla Firefox Password Manager places the password into the last input field preceding the stored input field. Just place a hidden dummy TextBox (or input) field inside Authentication control will precedes your password input field.
For more details read the description here
https://wiki.mozilla.org/Firefox%3aPassword_Manager