0

Chrome Autofill my first textbox in every page with logged user name. I tried different method like

autocomplete="off"

But this is not working.

<asp:TextBox ID="txtSearch" runat="server" Width="200px" Text="" >

2 Answers2

0

I would suggest that you make a hidden Textbox with the name and id username or email.

Wowo Ot
  • 1,065
  • 11
  • 18
0

Code

Please make this as below in code behind.

txtSearch.Attributes.Add("autocomplete", "off");

you can check attached screenshot.