ASP.Net textbox should not suggest old values

This question already has an answer here:

  • How do you disable browser Autocomplete on web form field / input tag? 58 answers
  • “Autocomplete off” not working in IE - ASP.Net 4 answers

  • You can set the autocomplete attribute in your html element to false :

    <asp:TextBox ID="TextBox1" autocomplete="false" runat="server"></asp:TextBox>
    

    You can also do it for your entire form:

    <form id="myForm" autocomplete="off" method="post" runat="server">
    

    您可以将它的AutoCompleteType属性设置为Disabled

    链接地址: http://www.djcxy.com/p/26436.html

    上一篇: 从浏览器停止自动填充?

    下一篇: ASP.Net文本框不应该建议旧的值