I am using the autocomplete extendor with this code:
 [System.Web.Services.WebMethod]
     public static string[] GetNames(string prefixText, int count)
     {
         DBprojectModel1.DBprojectEntities1 context = new DBprojectModel1.DBprojectEntities1();
 
         return context.Pupils.Where(n =>  n.FullName.StartsWith(prefixText)).OrderBy(n => n.FullName).Select(n  =>                    
         n.FullName).Take(count).ToArray();
     }
 eveything is work ok, however I dont want all the data from the SQL DataBase. I want to filter it with a DropDownList
 but when I try to use drpSchool.SelectedValue  inside the function it doesnt recognize it.
 how can I use dropdown list from the page inside this function?
  thank you !