自动完成关闭&QUOT

自动完成关闭&QUOT

本文介绍了"自动完成关闭"在IE浏览器不工作 - ASP.Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:是否有任何理由自动完成=关上的ASP:文本框不会在IE 7中合作

Question: Is there any reason Autocomplete=off on a ASP:Textbox would not be working in IE 7?

在这种情况下,是它最好的词,IE的自动完成功能是下拉列表一样,从文本框下拉,并展示了过去你在输入的东西的事情。

In case this is the best term for it, the IE Autocomplete feature is that drop down list like thing that drops down from textboxes and shows you past things you have typed in.

我需要在IE自动完成功能,在这一点上无法工作的一个文本框的是,就像一个Ajax自动完成控制用户控件的一部分。问题是,当阿贾克斯自动完成选择列表中显示出来,所以没有IE自动完成选择框。 (在情况下,我可以双击文本框),我使用这样的:

I need the IE Autocomplete feature to not work at this point for a textbox that is part of a user control that works like an Ajax Autocomplete control. Problem is, when the Ajax Autocomplete selection list shows up, so does the IE Autocomplete selection box. (In cases where I might double click the textbox) I'm using this:

someTextbox.AutoCompleteType = AutoCompleteType.Disabled;

但是剧照显示出来。我试图从IE自动完成拆卸的物品,但下一次我输入和preSS的东西进入,问题再次出现。任何想法?

But it stills shows up. I've tried removing the items from the IE Autocomplete, but the next time I type something in and press enter, the problem reappears. Any ideas?

请注意:查看源代码时,文本框呈现与自动完成=关闭标签

Note: The textbox is rendered with the Autocomplete=off tag when viewing the source.

注2:试过someTextbox.Attributes.Add(自动完成,关闭);也没有成功。

Note 2: Have tried someTextbox.Attributes.Add("autocomplete", "off"); also without success

*更新,想通了前一段时间,但忘记*

test.AutoCompleteType = AutoCompleteType.None;

这是实际工作。我不知道有什么区别,但。假设生病看,最多的某个时候。

That actually works. I'm not sure what the difference is though. Suppose Ill look that up sometime.

推荐答案

试图清除我的,我在原来的职位已经回答没有答案的问题。

Trying to clear out my unanswered questions that I've answered in the original post.

test.AutoCompleteType = AutoCompleteType.None;

这篇关于"自动完成关闭"在IE浏览器不工作 - ASP.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 14:52