-4

i have gone through all the blogs and solution but still nothing is working for me. anyone please help me on this. I am using asp.net web application. there I want to disable autocomplete textbox functionality.

  • 1
    Welcome to Stack Overflow. Read the [tour] and [ask] and show a [mcve]. – CodeCaster May 07 '18 at 07:56
  • 2
    Possible duplicate of [How do you disable browser Autocomplete on web form field / input tag?](https://stackoverflow.com/questions/2530/how-do-you-disable-browser-autocomplete-on-web-form-field-input-tag) – CodeCaster May 07 '18 at 07:57

1 Answers1

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

or

<input type="text" id="myInputID" name="myInputName" autocomplete="off" >
arnt
  • 7,178
  • 5
  • 20
  • 31
Mike
  • 651
  • 4
  • 13
  • Thanks for your response but, I have already used all this things autocomplete="off" ,autocomplete="nope", autocomplete="new-password" everything. nothing is working for me. Is there any other thing which I we can use ? – Sourabh Tiwari May 08 '18 at 11:23
  • I have a master page and content page in content page I am using like this: User Name I have also tried with AutoCompleteType="Disabled" but this is also didn't worked for me – Sourabh Tiwari May 08 '18 at 11:36
  • This code works for me before saving credentials into the browser but after saving this is not working I want restrict those part. hope you understand my query ? – Sourabh Tiwari May 08 '18 at 11:44