我真的无法理解这个问题。当我发布我的 asp.net 4.0 网站时,它会显示此错误。
警告“AjaxControlToolkit.AutoCompleteExtender.CompletionListElementID”已过时:“不要传入 CompletionListElementID,而是使用使用 CssClass 属性的默认弹出按钮和样式。”
现在我将提供它显示为警告的元素。
<ajaxToolkit:AutoCompleteExtender runat="server" BehaviorID="AutoCompleteEx2" ID="AutoCompleteExtender4"
TargetControlID="txtPokemonName" ServicePath="AutoCompleteName.asmx" ServiceMethod="GetCompletionListPokemonName"
MinimumPrefixLength="1" CompletionInterval="500" EnableCaching="true" CompletionSetCount="25"
CompletionListCssClass="AutoExtender" CompletionListItemCssClass="AutoExtenderList"
CompletionListElementID="DIVAutoExtender2" CompletionListHighlightedItemCssClass="AutoExtenderHighlight"
DelimiterCharacters=";, :" ShowOnlyCurrentWordInCompletionListItem="true">
<Animations>
<OnShow>
<Sequence>
<OpacityAction Opacity="0" />
<HideAction Visible="true" />
<ScriptAction Script="
// Cache the size and setup the initial size
var behavior = $find('AutoCompleteEx2');
if (!behavior._height) {
var target = behavior.get_completionList();
behavior._height = target.offsetHeight - 2;
target.style.height = '0px';
}" />
<Parallel Duration=".4">
<FadeIn />
<Length PropertyKey="height" StartValue="0" EndValueScript="$find('AutoCompleteEx2')._height" />
</Parallel>
</Sequence>
</OnShow>
<OnHide>
<Parallel Duration=".4">
<FadeOut />
<Length PropertyKey="height" StartValueScript="$find('AutoCompleteEx2')._height" EndValue="0" />
</Parallel>
</OnHide>
</Animations>
</ajaxToolkit:AutoCompleteExtender>
现在 Visual Studio 希望我修复什么以及为什么显示此警告?
有任何想法吗 ?谢谢你。
Visual Studio 2010 , C# 4.0 , Asp.net 4.0 , Asp.net 网站