Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Try this trick</p> <pre><code>public string[] GetVideoTitles(string prefixText) { try { ...Your code... foreach (DataRow dr in dt.Rows) { items.SetValue(dr["videotitle"].ToString(), i); Debug.Write(dr["videotitle"].ToString()); i++; } ...Your code... } catch(Exception) { Debug.Assert(false); } } </code></pre> <p>This way you first locate if somthing stop running on webservice method. Also use the DebugView from sysinternals to check live the data you get from Debug.write()</p> <p><a href="http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx" rel="nofollow noreferrer">Debug View</a></p> <p>Hope this 2 thinks help you locate the bug.</p> <p>-- Found this on asp.net forums-- <a href="http://forums.asp.net/t/1123944.aspx" rel="nofollow noreferrer">http://forums.asp.net/t/1123944.aspx</a></p> <p>In most cases where the WebService method does not get calls becasue the WebMethod Signature does not match with the AutoComplete Extender signature. The Method signature needs to be:</p> <p><strong>string[] WSMethodName(string prefixText, int count)</strong></p> <p>You can have different method name but the parameter names and return type needs to be exact match even in case. </p> <p>Reading this page <a href="http://www.vishwamohan.com/post/2007/05/07/AJAX-Error-Sys-is-undefined.aspx" rel="nofollow noreferrer">http://www.vishwamohan.com/post/2007/05/07/AJAX-Error-Sys-is-undefined.aspx</a></p> <p>and this page <a href="http://blogs.imeta.co.uk/TAxworthy/archive/2009/01/15/569.aspx" rel="nofollow noreferrer">http://blogs.imeta.co.uk/TAxworthy/archive/2009/01/15/569.aspx</a> Found that the sys problem can solve that way....</p> <p>The most important line was:</p> <p><strong>allowDefinition="MachineToApplication"</strong> </p> <pre><code>&lt;section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" /&gt; </code></pre> <p>When compared to the application’s web.config, the last section was missing. When this line was amended, the javascript error was fixed, and the AJAX controls worked correctly again.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload