如何在按下提交按钮后阻止Google Chrome在ASP.NET MVC 4中保存密码? [英] How to prevent Google Chrome from saving passwords in ASP.NET MVC 4 after pressing submit button?

查看:98
本文介绍了如何在按下提交按钮后阻止Google Chrome在ASP.NET MVC 4中保存密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天

您好我已经在MVC中开发了一个小的登录屏幕,每当我按下提交按钮时它总是向我提供是否

你想要保存密码

i想要禁用该选项

i可以从浏览器中禁用该设置

是否可以使用java脚本或通过c#
$来实现b $ bi尝试设置文本框属性auto complete = off但是它不起作用它仍然保存密码

i甚至厌倦了将表单标签的属性设置为auto complete = off

但即使这样也行不通

Good Day
Hi i have developed a small log in screen in MVC whenever i press submit button it always offers me whether
do you want to save password
i want to disable that option
i can disable that setting from browser
Is it possible to do it using java script or through c#
i tried to set the text box property auto complete=off but it does not work it is still saving password
i even tired to set the property of form tag to auto complete=off
but even that does not work

推荐答案

可能是空间问题(不确定你是否错误地添加了这个空间)。你应该把 autocomplete = off 代替 auto complete = off



通过HTML禁用网络表单上的自动填充还是JavaScript? [ ^ ]
Possibly the space is the issue(Not sure you have added that space mistakenly). You should put autocomplete=off instead of auto complete=off

Disable autofill on a web form through HTML or JavaScript?[^]


这篇关于如何在按下提交按钮后阻止Google Chrome在ASP.NET MVC 4中保存密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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