Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在asp.net中禁用firefox记住密码窗口_Asp.net_Firefox - Fatal编程技术网

在asp.net中禁用firefox记住密码窗口

在asp.net中禁用firefox记住密码窗口,asp.net,firefox,Asp.net,Firefox,我想在firefox中登录,但没有提示不能保存用户名和密码的记住密码。 我使用了autocomplete=off,但在firefox中不工作 <form autocomplete="off"> <input id="username" type="text" runat="server" autocomplete="off"/> <input id="pass" type="password" runat="server" autocomplete="off"/

我想在firefox中登录,但没有提示不能保存用户名和密码的记住密码。 我使用了autocomplete=off,但在firefox中不工作

<form autocomplete="off">
 <input id="username" type="text" runat="server" autocomplete="off"/>
 <input id="pass" type="password" runat="server" autocomplete="off"/>

请帮帮我:

你可以做另一件事-

<script type="text/javascript">
$(function(){                                               
    setTimeout(function(){
        $("input#passfld").attr("type","password");
    },10);
});
</script>
您应该以这种方式使用autocomplete=off。您在表单标签中尝试过这种方法吗?