自动完成扩展器无法在模态弹出扩展器内工作 [英] autocomplete extender not working inside modal popup extender

查看:99
本文介绍了自动完成扩展器无法在模态弹出扩展器内工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打开一个弹出框,其中我有一个textbox.i想要为此文本框使用ajax自动完成扩展程序。但是它无法调用autocompletion.cant的webservice方法了解天气它的回发或updatepanel.where的问题我应该使用更新面板。我的页面包含弹出div已经在updatepanel1里面。下面给出了代码快照..



I am opening a popup in which i have a textbox.i want to use ajax autocomplete extebder for this textbox.but its not able to call the webservice method for autocompletion.cant understand weather its a problem of postback or updatepanel.where i should use the update panel.My page containing popup div is already inside "updatepanel1" .code snap is given below..

<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false" >
                                            <contenttemplate>
<asp:TextBox ID="txtEditMPName" runat="server" Width="408px" AutoPostBack="true" BackColor="#CCFFFF" OnTextChanged="txtEditMPName_TextChanged">
<cc1:AutoCompleteExtender ID="ace2"  runat="server" BehaviorID="autoSuggest" DelimiterCharacters="" Enabled="true" MinimumPrefixLength="1" ServiceMethod="GetParty" CompletionInterval="10" EnableCaching="true" CompletionSetCount="1"  önClientShown="ShowOptions" TargetControlID="txtEditMPName" FirstRowSelected="True" CompletionListCssClass="AutoCompleteCompletionList" CompletionListHighlightedItemCssClass="AutoCompleteCompletionListHighlightedItem" CompletionListItemCssClass="AutoCompleteCompletionListItem">

</contenttemplate>
 <triggers>
<asp:AsyncPostBackTrigger ControlID="txtEditMPName" EventName="TextChanged" />
</triggers>

推荐答案

我能看到的问题



ServicePath 未为 AutoCompleteExtender 定义属性。

参考自动完成演示 [ ^ ]

Problem which I can see

ServicePath Property is not defined for the AutoCompleteExtender.
Refer- AutoComplete Demonstration[^]
引用:

ServicePath - 扩展程序将从中提取单词\sentence完成的Web服务的路径。如果未提供,则服务方法应为页面方法。

ServicePath - The path to the web service that the extender will pull the word\sentence completions from. If this is not provided, the service method should be a page method.


这篇关于自动完成扩展器无法在模态弹出扩展器内工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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