尝试使用atribute autocomplete="off"
它应该适用于单个输入元素:
<input type="text" autocomplete="off" name="text1" />
Run Code Online (Sandbox Code Playgroud)
或整个表格:
<form name="form1" id="form1" method="post" autocomplete="off"
action="http://www.example.com/action">
[...]
</form>
Run Code Online (Sandbox Code Playgroud)
特别是对于ASP .NET,您可以这样设置:
WebForms表单:
<form id="Form1" method="post" runat="server" autocomplete="off">
Run Code Online (Sandbox Code Playgroud)
文本框:
<asp:TextBox Runat="server" ID="Textbox1" autocomplete="off"></asp:TextBox>
Run Code Online (Sandbox Code Playgroud)
或在运行时:
Textbox1.Attributes.Add("autocomplete", "off");
Run Code Online (Sandbox Code Playgroud)