title: AJAX Control Toolkit Autocomplete Extender not working
body: <p>I can't get AJAX CT Autocomplete to work. The problem is when I start writing in textbox nothing happens. The frist problem I had experienced was when I tried to Add AutoComplete page method I got an error: "Cannot create page method "GetCompletionList"...". Then I tried creating it manually, but still nothing happens.</p>
  
  <p>Here is the AdministracijaOsoba.aspx code:</p>
  
  <pre><code>&lt;asp:TextBox ID="txtOsoba" runat="server"&gt;&lt;/asp:TextBox&gt;&lt;asp:AutoCompleteExtender
                      ID="AutoCompleteExtender1" runat="server" ScriptPath="" 
                      ServiceMethod="GetCompletionList" ServicePath="AdministracijaOsoba.aspx.cs" 
                      TargetControlID="txtOsoba" UseContextKey="True"&gt;
                  &lt;/asp:AutoCompleteExtender&gt;
  </code></pre>
  
  <p>Here is the AdministracijaOsoba.aspx.cs code:</p>
  
  <pre><code>public static string[] GetCompletionList(string prefixText, int count, string contextKey)
      {
          PravosudnaAkademijaEntities db = new PravosudnaAkademijaEntities();
  
          var osoba = from o in db.osobas
                      orderby o.osoba_prezime
                      select new { o.osoba_id, person = o.osoba_prezime + " " + o.osoba_ime };
  
          string[] main = new string[0];
  
          foreach (var o in osoba)
          {
              if (o.person.StartsWith(prefixText))
              {
                  Array.Resize(ref main, main.Length + 1);
                  main[main.Length - 1] = o.person.ToString();
  
                  if (main.Length == 15)
                  {
                      break;
                  }
              }
          }
  
          Array.Sort(main);
          return main;
      }
  </code></pre>
  
  <p>Take a note that I'm using LINQ to Entities. Any help on this would be appreciated.</p>
  
  <p>Regards!</p>