Answered by:
How to classify gender by using Checkbox in AutoCompleteExtender

Question
-
User-582711651 posted
Dear Experts,
I am getting a struggle in AutoCompleteExtender, am using and getting rows well without any trouble, but I would like to classify gender wise details by using two Checkboxes viz, ID="Chk_Gender_Male" ID="Chk_Gender_FeMale". When <g class="gr_ gr_11 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" id="11" data-gr-id="11">client</g> clicks Chk_Gender_Male then corresponding Male rows only to be displayed and the same should be displayed in another <g class="gr_ gr_8 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del" id="8" data-gr-id="8">check box</g>. <g class="gr_ gr_9 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del" id="9" data-gr-id="9">Incase</g> when <g class="gr_ gr_12 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" id="12" data-gr-id="12">client</g> checks both checkboxes then both Male & Female rows needs to have appeared.
MyQuery: Let me know how do I transpose checkbox click details to context Key, please share your inputs with examples
My Script:
<asp:TextBox ID="Txt_Emp_Name" runat="server" autocomplete="off" Width="200px" BackColor="#A4D1FF" ></asp:TextBox>
<cc1:AutoCompleteExtender ID="autoComplete1" runat="server" BehaviorID="AutoCompleteEx" CompletionInterval="100" CompletionListCssClass="autocomplete_completionListElement" CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem" CompletionSetCount="20" DelimiterCharacters=";, :" EnableCaching="true" MinimumPrefixLength="2"
ServiceMethod="Get_Pending_BranchNameList_Txn" ServicePath="AutoComplete.asmx" ShowOnlyCurrentWordInCompletionListItem="true" UseContextKey = "true" TargetControlID="Txt_Emp_Name"></cc1:AutoCompleteExtender>
Thanks in advance.
Saturday, June 30, 2018 2:55 PM
Answers
-
User-1171043462 posted
You can pass Additional parameter i.e. your CheckBox value as done in my article.
ASP.Net AJAX AutoCompleteExtender: Pass Additional Parameter to WebMethod using ContextKey
I am passing Country as additional parameter
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Saturday, June 30, 2018 6:31 PM
All replies
-
User-1171043462 posted
You can pass Additional parameter i.e. your CheckBox value as done in my article.
ASP.Net AJAX AutoCompleteExtender: Pass Additional Parameter to WebMethod using ContextKey
I am passing Country as additional parameter
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Saturday, June 30, 2018 6:31 PM -
User-582711651 posted
Hi,
I have seen and know this, my query is how to communicate, in case user click checkbox, anyhow I try, thanks for your prompt response.
Sunday, July 1, 2018 1:38 PM -
User-1171043462 posted
Can pls explain in bit detailSunday, July 1, 2018 4:29 PM