asp.net - Problems with input type password in html -
i have section in asp website (after logging in), user accounts can added. problem user inputs of type password , email user's email address , password fields. reason, auto populates these fields based on values memorized login page. following image presents scenario. suggestions?
<tr> <td>email </td> <td><asp:textbox id="txtemailtoadd" runat="server" width="200px" autocomplete="off"></asp:textbox></td> <td></td> </tr> <tr> <td>department </td> <td> <asp:dropdownlist id="cbodepttoadd" runat="server" width="200px"> </asp:dropdownlist> </td> <td></td> </tr> <tr> <td>position </td> <td> <asp:dropdownlist id="cbopostoadd" runat="server" width="200px"> </asp:dropdownlist> </td> <td></td> </tr> <tr> <td>password </td> <td><asp:textbox id="txtpasswordtoadd" runat="server" width="200px" textmode="password" autocomplete="off"></asp:textbox></td> <td></td> </tr> <tr> <td>confirm password </td> <td><asp:textbox id="txtpasswordconfirmtoadd" runat="server" width="200px" textmode="password" autocomplete="off"></asp:textbox></td> <td><asp:button id="btnadduser" runat="server" text="add user" width="170px" onclientclick="return validateadd();" onclick="btnadduser_click" /></td> </tr>
you want autocompletetype="disabled"
asp.net textbox control.
<asp:textbox id="txtemailtoadd" runat="server" autocompletetype="disabled"> </asp:textbox>
it render
<input name="txtemailtoadd" type="text" autocomplete="off" id="txtemailtoadd" />
here more information autocompletetype property.
Comments
Post a Comment