As the other answerer said, disable
AutoCompleteType
property of the textbox.
<asp:TextBox ID="TextBox1" runat="server" AutoCompleteType="Disabled"></asp:TextBox>
But this would not work in Mozilla Firefox. The best option would be to write a JavaScript
onFocus
of the text box to disable the autocomplete behaviour.
<asp:TextBox ID="TextBox1" runat="server" AutoCompleteType="Disabled" onfocus="disableautocompletion(this.id);" ></asp:TextBox>
Javascript:
function disableautocompletion(id){
var passwordControl = document.getElementById(id);
passwordControl.setAttribute("autocomplete", "off");
}
Hope this helps! :thumbsup: