我有一个VS2010 ASP.Net网络应用程序,它使用ajaxToolkit:AutoCompleteExtender。当我开发应用程序并从VS2010运行应用程序时,一切正常。但是,当我将应用程序发布到QA或生产甚至PC上的本地站点时,ajaxToolkit:AutoCompleteExtender不会执行任何操作。我没有错,没有任何反应。我的服务方法没有被调用。
以下是我的AutoCompleteExtender控件。当用户开始在文本框中键入内容时," PerformSearch"假设要调用service方法并出现下拉列表。但是,当我开始输入时,没有任何反应。我的文本输入到文本框中,但从不调用服务方法。我可以通过单击按钮来调用服务方法,但AutoCompleteExtender不会调用服务方法,但这只会在生产或质量检查中失败。
在需要部署的发布时我是否遗漏了文件?
<ajaxToolkit:AutoCompleteExtender
runat="server"
BehaviorID="AutoCompleteEx"
ID="autoComplete1"
TargetControlID="cboPartno"
ServicePath="..\AutoComplete.asmx"
ServiceMethod="PerformSearch"
MinimumPrefixLength="2"
CompletionInterval="1000"
EnableCaching="true"
CompletionSetCount="20"
CompletionListCssClass="autocomplete_completionListElement"
CompletionListItemCssClass="autocomplete_listItem"
CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
DelimiterCharacters=";, :"
ShowOnlyCurrentWordInCompletionListItem="true" >
<Animations>
<OnShow>
<Sequence>
<%-- Make the completion list transparent and then show it --%>
<OpacityAction Opacity="0" />
<HideAction Visible="true" />
<%--Cache the original size of the completion list the first time
the animation is played and then set it to zero --%>
<ScriptAction Script="
// Cache the size and setup the initial size
var behavior = $find('AutoCompleteEx');
if (!behavior._height) {
var target = behavior.get_completionList();
behavior._height = target.offsetHeight - 2;
target.style.height = '0px';
}" />
<%-- Expand from 0px to the appropriate size while fading in --%>
<Parallel Duration=".4">
<FadeIn />
<Length PropertyKey="height" StartValue="0" EndValueScript="$find('AutoCompleteEx')._height" />
</Parallel>
</Sequence>
</OnShow>
<OnHide>
<%-- Collapse down to 0px and fade out --%>
<Parallel Duration=".4">
<FadeOut />
<Length PropertyKey="height" StartValueScript="$find('AutoCompleteEx')._height" EndValue="0" />
</Parallel>
</OnHide>
</Animations>
</ajaxToolkit:AutoCompleteExtender>