Search code examples
.netautocompleteextender

disable browser autocomplete for ajax:AutoCompleteExtender


I'm using the .net ajaxtoolkit control AutoCompleteExtender. It works great but my firefox autocomplete overrides the values that the extender is returning (the firefox one lays on top of the control's).

is there a way to disable the browser's version of autocomplete so that the .net one takes precendence?


Solution

  • Try this:

    <asp:TextBox ID="txtFirstName" runat="server" autocomplete="off" />
    

    The trick is setting autocomplete="off".

    Actually it is defined in HTML 5 standards, but should work in most modern browsers.