ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Error: AjaxControlToolkit.AutoCompleteExtender missing required ServiceMethod property value for txtSearch_AutoCompleteExtender<p>Hi micah,</p> <p>Check you didn't assign WebMethod attribute to the method in code behind. Your code should be like below.</p> <pre class="brush: csharp">[System.Web.Services.WebMethod] public static string[] GetNames(string prefix) { }</pre> <p>Also You need to assign the ServiceMethod to the AutoCompleteExtender.</p>https://www.aspforums.net:443/Threads/203555/Error-AjaxControlToolkitAutoCompleteExtender-missing-required-ServiceMethod-property-value-for-txtSearchAutoCompleteExtender/https://www.aspforums.net:443/Threads/203555/Error-AjaxControlToolkitAutoCompleteExtender-missing-required-ServiceMethod-property-value-for-txtSearchAutoCompleteExtender/Mon, 12 Sep 2016 02:23:01 GMTError: AjaxControlToolkit.AutoCompleteExtender missing required ServiceMethod property value for txtSearch_AutoCompleteExtender<p>i did but still getting error</p> <p>&nbsp;</p> <pre class="brush: csharp">[WebMethod] public static string[] GetNames(string prefix) { List&lt;string&gt; users = new List&lt;string&gt;(); using (SqlConnection conn = new SqlConnection()) { conn.ConnectionString = ConfigurationManager.ConnectionStrings[&#34;conn&#34;].ConnectionString; using (SqlCommand cmd = new SqlCommand()) { cmd.CommandText = &#34;select Name from User3 where &#34; + &#34;Id like @SearchText + &#39;%&#39;&#34;; cmd.Parameters.AddWithValue(&#34;@SearchText&#34;, prefix); cmd.Connection = conn; conn.Open(); using (SqlDataReader sdr = cmd.ExecuteReader()) { while (sdr.Read()) { users.Add(string.Format(&#34;{0}-{1}&#34;, sdr[&#34;Name&#34;], sdr[&#34;Id&#34;])); } } conn.Close(); } } return users.ToArray();</pre> <p>error</p> <p>&nbsp;</p> <pre class="brush: csharp">Server Error in &#39;/&#39; Application. AjaxControlToolkit.AutoCompleteExtender missing required ServiceMethod property value for txtSearch_AutoCompleteExtender. Parameter name: ServiceMethod Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: AjaxControlToolkit.AutoCompleteExtender missing required ServiceMethod property value for txtSearch_AutoCompleteExtender. Parameter name: ServiceMethod Source Error: Line 6: source: function (request, response) { Line 7: $.ajax({ Line 8: url: &#39;&lt;%=ResolveUrl(&#34;~/Timeline.aspx/GetNames&#34;) %&gt;&#39;, Line 9: data: &#34;{ &#39;prefix&#39;: &#39;&#34; + request.term + &#34;&#39;}&#34;, Line 10: dataType: &#34;json&#34;,</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/203555/Error-AjaxControlToolkitAutoCompleteExtender-missing-required-ServiceMethod-property-value-for-txtSearchAutoCompleteExtender/https://www.aspforums.net:443/Threads/203555/Error-AjaxControlToolkitAutoCompleteExtender-missing-required-ServiceMethod-property-value-for-txtSearchAutoCompleteExtender/Mon, 12 Sep 2016 02:46:49 GMTError: AjaxControlToolkit.AutoCompleteExtender missing required ServiceMethod property value for txtSearch_AutoCompleteExtender<p>Share the html.</p>https://www.aspforums.net:443/Threads/203555/Error-AjaxControlToolkitAutoCompleteExtender-missing-required-ServiceMethod-property-value-for-txtSearchAutoCompleteExtender/https://www.aspforums.net:443/Threads/203555/Error-AjaxControlToolkitAutoCompleteExtender-missing-required-ServiceMethod-property-value-for-txtSearchAutoCompleteExtender/Mon, 12 Sep 2016 02:53:03 GMTError: AjaxControlToolkit.AutoCompleteExtender missing required ServiceMethod property value for txtSearch_AutoCompleteExtender<p>html markups</p> <p>&nbsp;</p> <pre class="brush: html"> &lt;div class=&#34;input-group&#34; style=&#34;&#34;&gt; &lt;asp:ScriptManager ID=&#34;ScriptManager&#34; runat=&#34;server&#34; EnablePageMethods = &#34;true&#34;&gt; &lt;/asp:ScriptManager&gt; &lt;asp:TextBox ID=&#34;txtSearch&#34; runat=&#34;server&#34; class=&#34;form-control&#34; placeholder=&#34;Search...&#34; Width=&#34;100%&#34;/&gt; &lt;asp:AutoCompleteExtender runat=&#34;server&#34; ServicePath=&#34;&#34; DelimiterCharacters=&#34;&#34; Enabled=&#34;True&#34; TargetControlID=&#34;txtSearch&#34; ID=&#34;txtSearch_AutoCompleteExtender&#34;&gt;&lt;/asp:AutoCompleteExtender&gt; &lt;asp:HiddenField ID=&#34;hfUserName&#34; runat=&#34;server&#34; /&gt; &lt;span class=&#34;input-group-btn&#34;&gt; &lt;asp:LinkButton ID=&#34;btnSearch&#34; runat=&#34;server&#34; class=&#34;btn btn-twitter&#34; OnClick=&#34;btnSearch_Click&#34; EnableViewState=&#34;false&#34; CausesValidation=&#34;false&#34;&gt; &lt;i class=&#34;fa fa-search&#34;&gt;&lt;/i&gt; &lt;/asp:LinkButton&gt; &lt;/span&gt; &lt;/div&gt;</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/203555/Error-AjaxControlToolkitAutoCompleteExtender-missing-required-ServiceMethod-property-value-for-txtSearchAutoCompleteExtender/https://www.aspforums.net:443/Threads/203555/Error-AjaxControlToolkitAutoCompleteExtender-missing-required-ServiceMethod-property-value-for-txtSearchAutoCompleteExtender/Mon, 12 Sep 2016 05:54:45 GMTError: AjaxControlToolkit.AutoCompleteExtender missing required ServiceMethod property value for txtSearch_AutoCompleteExtender<p>Change like this.</p> <pre class="brush: html">&lt;asp:AutoCompleteExtender runat=&#34;server&#34; ServiceMethod=&#34;GetNames&#34; DelimiterCharacters=&#34;&#34; Enabled=&#34;True&#34; TargetControlID=&#34;txtSearch&#34; ID=&#34;txtSearch_AutoCompleteExtender&#34;&gt;&lt;/asp:AutoCompleteExtender&gt;</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/203555/Error-AjaxControlToolkitAutoCompleteExtender-missing-required-ServiceMethod-property-value-for-txtSearchAutoCompleteExtender/https://www.aspforums.net:443/Threads/203555/Error-AjaxControlToolkitAutoCompleteExtender-missing-required-ServiceMethod-property-value-for-txtSearchAutoCompleteExtender/Mon, 12 Sep 2016 06:12:34 GMTError: AjaxControlToolkit.AutoCompleteExtender missing required ServiceMethod property value for txtSearch_AutoCompleteExtender<p>Refer the below article. There is no need of autocomplete extender.</p> <h1 class="header"><a title="Implement jQuery AutoComplete TextBox from database using AJAX PageMethods in ASP.Net'a" href="http://www.aspsnippets.com/Articles/Implement-jQuery-AutoComplete-TextBox-from-database-using-AJAX-PageMethods-in-ASPNet.aspx">Implement jQuery AutoComplete TextBox from database using AJAX PageMethods in ASP.Net</a></h1>https://www.aspforums.net:443/Threads/203555/Error-AjaxControlToolkitAutoCompleteExtender-missing-required-ServiceMethod-property-value-for-txtSearchAutoCompleteExtender/https://www.aspforums.net:443/Threads/203555/Error-AjaxControlToolkitAutoCompleteExtender-missing-required-ServiceMethod-property-value-for-txtSearchAutoCompleteExtender/Mon, 12 Sep 2016 06:14:05 GMTError: AjaxControlToolkit.AutoCompleteExtender missing required ServiceMethod property value for txtSearch_AutoCompleteExtender<p>I know the link, I used it before and it didn't work we have also handled it here and no progress.&nbsp;</p>https://www.aspforums.net:443/Threads/203555/Error-AjaxControlToolkitAutoCompleteExtender-missing-required-ServiceMethod-property-value-for-txtSearchAutoCompleteExtender/https://www.aspforums.net:443/Threads/203555/Error-AjaxControlToolkitAutoCompleteExtender-missing-required-ServiceMethod-property-value-for-txtSearchAutoCompleteExtender/Mon, 12 Sep 2016 06:29:00 GMTError: AjaxControlToolkit.AutoCompleteExtender missing required ServiceMethod property value for txtSearch_AutoCompleteExtender<p>Have you changed your code like in the below link.</p> <p><a href="http://www.aspforums.net/Threads/203555/Textbox-AutoComplete-error/Replies/5#Replies">http://www.aspforums.net/Threads/203555/Textbox-AutoComplete-error/Replies/5#Replies</a></p> <p>You need to assign servicemethod.</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/203555/Error-AjaxControlToolkitAutoCompleteExtender-missing-required-ServiceMethod-property-value-for-txtSearchAutoCompleteExtender/https://www.aspforums.net:443/Threads/203555/Error-AjaxControlToolkitAutoCompleteExtender-missing-required-ServiceMethod-property-value-for-txtSearchAutoCompleteExtender/Mon, 12 Sep 2016 06:33:01 GMT