jquery と javascript を使用してクライアント側からコンテキスト キーを設定しているときに問題に直面しています。ASP.Net の AutoCompleteExtender の関数 set_contextKey が見つかりません。
テキストボックスと AutoCompleteExtender の HTML は次のとおりです...
<asp:TextBox ID="txtProduct" runat="server" AutoPostBack="true" OnTextChanged="txtProduct_TextChanged" Width="181px" /><ajaxToolkit:AutoCompleteExtender
ID="AutoCompleteExtender_txtProduct" BehaviorID="acExt" runat="server" TargetControlID="txtProduct"
CompletionListCssClass="autocomplete_completionListElement" CompletionListItemCssClass="autocomplete_listItem"
CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" MinimumPrefixLength="2"
CompletionInterval="1000" ServicePath="~/WS/Service.svc" ServiceMethod="GetProductsByName"
EnableCaching="true" DelimiterCharacters=";" UseContextKey="true" OnClientItemSelected="txtProduct_ClientItemSelected">
</ajaxToolkit:AutoCompleteExtender>
ドロップダウンリストの変更時のjqueryは次のとおりです。
function ddlStore_onchange() {
$('#acExt').set_contextKey($('#<%= ddlStore.ClientID %>').val());
}
set_contextKey 関数でエラーをスローしています。ここで私が間違っていることを誰かが説明できますか...