Ky sajt do të funksionojë me kufizime, teksa bëjmë mirëmbajtjen e tij për të përmirësuar punën tuaj. Nëse një artikull nuk e zgjidh problemin tuaj dhe dëshironi të bëni një pyetje, kemi bashkësinë tonë të asistencës, e gatshme për t’ju ndihmuar, te @FirefoxSupport në Twitter dhe/r/firefox në Reddit.

Kërkoni te Asistenca

Shmangni karremëzime gjoja asistence. S’do t’ju kërkojmë kurrë të bëni një thirrje apo të dërgoni tekst te një numër telefoni, apo të na jepni të dhëna personale. Ju lutemi, raportoni veprimtari të dyshimtë duke përdorur mundësinë “Raportoni Abuzim”.

Mësoni Më Tepër

Disable Save Password Prompt in firefox (v.61) from aspx (autocomplete="off" not working)

  • 2 përgjigje
  • 1 e ka hasur këtë problem
  • 2 parje
  • Përgjigjja më e re nga cor-el

more options

I want to disable the Save Password Prompt in firefox in my login aspx page (not directly by changing the settings in firefox). I have used autocomplete="off", it works in IE and chorme but not in firefox. Can you please provide me a solution. Below is my simple login aspx :

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .auto-style4 {
            width: 400px;
        }
        .auto-style6 {
            width: 140px;
        }
        .auto-style7 {
            text-align: center;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table align="center" class="auto-style4">
        <tr>
            <td class="auto-style7" colspan="2">LOGIN</td>
        </tr>
        <tr>
            <td class="auto-style6">Customer Id</td>
            <td>
                <asp:TextBox ID="txtUsername" runat="server" autocomplete="off"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="auto-style6">Password</td>
            <td>
                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" autocomplete="off"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="auto-style6">&nbsp;</td>
            <td>
                <asp:Button ID="btnSubmitLogin" runat="server" OnClick="btnSubmitLogin_Click" Text="Login" />
            </td>
        </tr>
        <tr>
            <td style="align-content:center">
                <asp:Label ID="lblMessage" runat="server"></asp:Label>
            </td>
        </tr>
    </table>
</asp:Content>
I want to disable the Save Password Prompt in firefox in my login aspx page (not directly by changing the settings in firefox). I have used autocomplete="off", it works in IE and chorme but not in firefox. Can you please provide me a solution. Below is my simple login aspx : <pre><nowiki><%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .auto-style4 { width: 400px; } .auto-style6 { width: 140px; } .auto-style7 { text-align: center; } </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <table align="center" class="auto-style4"> <tr> <td class="auto-style7" colspan="2">LOGIN</td> </tr> <tr> <td class="auto-style6">Customer Id</td> <td> <asp:TextBox ID="txtUsername" runat="server" autocomplete="off"></asp:TextBox> </td> </tr> <tr> <td class="auto-style6">Password</td> <td> <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" autocomplete="off"></asp:TextBox> </td> </tr> <tr> <td class="auto-style6">&nbsp;</td> <td> <asp:Button ID="btnSubmitLogin" runat="server" OnClick="btnSubmitLogin_Click" Text="Login" /> </td> </tr> <tr> <td style="align-content:center"> <asp:Label ID="lblMessage" runat="server"></asp:Label> </td> </tr> </table> </asp:Content></nowiki></pre>

Ndryshuar nga cor-el

Krejt Përgjigjet (2)

more options

Sorry, this isn't the best site for posting code... can you edit your question (there may be a link on the right side of it) and use pre tags around the code block? Also, please provide the code that is served to the browser (use right-click > View Page Source in Firefox), because we are not always familiar with how .Net code renders to the client.

More generally, Firefox ignores autocomplete="off" on username and password fields, according to:

https://developer.mozilla.org/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#The_autocomplete_attribute_and_login_fields

more options

I've placed the code in PRE tags (remember that this forum includes a separate DIV.content-raw with the raw code)


There is a pref (signon.storeWhenAutocompleteOff) that can be changed to make Firefox honor autocomplete="off", but you can't affect this via code in the website. The only way would be to code the form in such a way that Firefox doesn't recognize it as a login form, bit I don't know how to do this. We sometimes get a question where the Firefox Password Manager isn't triggered by the login form for some reason.