$find('autorextenderID').set_contextKey
$find('autorextender''s BehaviourID').set_contextKey
var e = document.getElementById('<% = AutoCompleteExtenderPortOfUnlading.ClientID %>'); e.set_contextKey($('#<%= ddlDestinationCountry.ClientID %>').val());
<httpRuntime encoderType />
<div class="row"> <div class="label"> <asp:Label ID="lblPortOfUnlading" runat="server" style="display:none;" Text="Port of Unlading:"></asp:Label> </div> <div class="value"> <asp:TextBox ID="txtPortOfUnlading" runat="server" style="display:none;" onkeyup="SetContextKey();" Width="256px" AutoCompleteType="Search"></asp:TextBox> <ajaxToolkit:AutoCompleteExtender runat="server" ID="AutoCompleteExtenderPortOfUnlading" BehaviorID="AutoCompleteEx" DelimiterCharacters="" Enabled="True" ServiceMethod="GetPortOfUnladingByCountry" CompletionListCssClass="completionListElement" CompletionListItemCssClass="listItem" CompletionListHighlightedItemCssClass="highlightedListItem" ServicePath="" TargetControlID="txtPortOfUnlading" UseContextKey="True" ></ajaxToolkit:AutoCompleteExtender> </div> </div> <script type="text/javascript" language="javascript"> function SetContextKey() { var e = document.getElementById('<% = AutoCompleteExtenderPortOfUnlading.ClientID %>'); e.set_contextKey($('#<%= ddlDestinationCountry.ClientID %>').val()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)