如何在ASP.NET MVC保存密码prevent谷歌浏览器? [英] How to prevent Google Chrome from saving passwords in ASP.NET MVC?

查看:173
本文介绍了如何在ASP.NET MVC保存密码prevent谷歌浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法来prevent谷歌Chrome和其他浏览器,从特定网站保存密码吗?该服务器是ASP.NET MVC .NET4。

Is there a way to prevent Google Chrome and other browsers from saving a password for a specific site? The server is ASP.NET MVC .NET4.

推荐答案

尝试自动完成=关闭。浏览器应该尊重这个 - 但他们当然不必

Try autocomplete='off' on the input field. Browsers should respect this - but of course they don't have to.

更新:
这就是现在的HTML5的一部分,按照该标准,您可以添加自动完成=关闭来的表单标签把它应用到表单中的所有字段。

UPDATE: This is now part of HTML5, and according to that standard you can add autocomplete='off' to the form tag to have it apply to all fields within the form.

<一个href=\"http://www.w3schools.com/html/html5_form_attributes.asp\">http://www.w3schools.com/html/html5_form_attributes.asp

这篇关于如何在ASP.NET MVC保存密码prevent谷歌浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆