I have an autocomplete extender attached to a textbox that returns a single, most likely match after 2 characters are typed in the textbox. I would like the single match to automatically fill the textbox rather than having the user select the match from
the dropdown (one item in dropdown). Sort of what a combobox does. I can't use a combobox because the list would be in the thousands. Is there anyway to do this? My code looks likes:
I guess I didn't explain myself well enough. I don't want a popup panel to appear with my single selection. I want my single selection to fill the textbox (with out selecting from the popup panel).
workathome
Member
39 Points
41 Posts
AutoComplete functionality
Feb 24, 2012 12:07 AM|LINK
I have an autocomplete extender attached to a textbox that returns a single, most likely match after 2 characters are typed in the textbox. I would like the single match to automatically fill the textbox rather than having the user select the match from the dropdown (one item in dropdown). Sort of what a combobox does. I can't use a combobox because the list would be in the thousands. Is there anyway to do this? My code looks likes:
<td style="width:100px">Project Code:</td> <td><asp:TextBox ID="txtProjCode" runat="server" CssClass="txtReadOnlyLeft" AutoPostBack="true"></asp:TextBox> <asp:AutoCompleteExtender ID="autoProjCode" runat="server" ServicePath="~/AutoComplete.asmx" TargetControlID="txtProjCode" ServiceMethod="GetCompletionList" FirstRowSelected="true" MinimumPrefixLength="2" EnableCaching="true" ></asp:AutoCompleteExtender></td>chetan.sarod...
All-Star
66619 Points
11270 Posts
Re: AutoComplete functionality
Feb 24, 2012 02:32 AM|LINK
Hi, Please refer this
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AutoComplete/AutoComplete.aspx and http://www.asp.net/ajaxlibrary/act_AutoComplete.ashx
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
chikkanti
Member
270 Points
80 Posts
Re: AutoComplete functionality
Feb 24, 2012 09:09 AM|LINK
http://chikkanti.wordpress.com/2011/11/11/ajax-autocomplete-extender-using-edm/
refer the above link to get working with accordian using entity frame work(edm) also
ajax asp.net EntityFramework asp.netajax
workathome
Member
39 Points
41 Posts
Re: AutoComplete functionality
Mar 16, 2012 11:04 PM|LINK
I guess I didn't explain myself well enough. I don't want a popup panel to appear with my single selection. I want my single selection to fill the textbox (with out selecting from the popup panel).