locked
Autofil Remove on page load RRS feed

  • Question

  • User-807418713 posted

    Hello

    I have my aspx page in all aspx page its showing autofill old data cached..

    So its difficult to select date and all... so how to remove autofill in aspx page load code..

    Thanking you

    Tuesday, August 14, 2018 11:41 AM

Answers

All replies

  • User-1320437544 posted

    Hello,

    Set autocomplete="off" on the textboxes you want to switch off the autofill. Than clear the browser cache to test the results.

    Example:

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

    *********************************************************************************

    Please, don't forget to mark my answer if it was helpful. Thanks.

    Tuesday, August 14, 2018 3:53 PM
  • User-807418713 posted

    Hello

    I used this autocomplete="off" but in some browser its not working

    why...

    Any other method so that i can write in pageload so if it automatically clear all textbox on that current page..

    Wednesday, August 15, 2018 8:44 AM
  • User-1320437544 posted

    Autocomplete is standard HTML attribute which works in all browsers. Is your caching problem present only in one browser or a few different browsers?

    Wednesday, August 15, 2018 5:45 PM
  • User-807418713 posted

    Hello

    It comes with different browser some times in IE works fine..

    Friday, August 17, 2018 7:07 PM
  • User-1320437544 posted

    Can you share some code please.

    Saturday, August 18, 2018 1:31 AM
  • User-807418713 posted

    Hello

    Here is my code

    <asp:TextBox ID="TxtTDate" runat="server"
    placeholder="To Date" autocomplete="off" Width="100px"></asp:TextBox>

    Saturday, August 18, 2018 5:18 AM
  • User1857954827 posted

    hi i have same issue my code is not working in google chrome but in other browser it's working fine

    Saturday, August 18, 2018 4:50 PM
  • User-807418713 posted

    hi i have same issue my code is not working in google chrome but in other browser it's working fine

    any other best script if i place that script in masterpage file it should take to call page and it should works all browser..

    Sunday, August 19, 2018 7:25 AM
  • User-807418713 posted

    Hello

    Any Solution Please Let Me Know

    Thanking you

    Thursday, August 30, 2018 5:34 AM
  • User-807418713 posted

    Hello

    Any one please give me solution for this...

    Thanking You

    Monday, September 3, 2018 7:13 AM
  • User1520731567 posted

    Hi Gopi.MCA,

    You can do it at the input level in HTML by adding "autocomplete="off" to the input.

    http://css-tricks.com/snippets/html/autocomplete-off/

    You could also do it via JS such as:

    someForm.setAttribute( "autocomplete", "off" ); 
    someFormElm.setAttribute( "autocomplete", "off" );

    Best Regards.

    Yuki Tao

    Thursday, September 6, 2018 9:43 AM
  • User-807418713 posted

    Hello 

    Thanks For Your Code

    If IE browser then fine 

    If No IE browser then autocomplte off not working..

    How to solve this issue

    Tuesday, September 18, 2018 7:57 AM
  • User-807418713 posted

    Hello 

    Thanks For Your Code

    If IE browser then fine 

    If No IE browser then autocomplte off not working..

    How to solve this issue

    Tuesday, October 2, 2018 12:28 PM
  • User-1171043462 posted

    For Browser where it is not working. Pls use this trick

    https://www.20spokes.com/blog/what-to-do-when-chrome-ignores-autocomplete-off-on-your-form

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 2, 2018 1:24 PM
  • User-807418713 posted

    Hello

    Can you give me one example for asp.net textbox

    I tried still its not working...

    Thanking You

    Tuesday, October 2, 2018 3:54 PM