Trying to implement the AutoCompleteExtender and coming up with a deadend Internal Server Error 500.
Page Method:
[System.Web.Script.Services.ScriptMethod()]
[System.Web.Services.WebMethod]
public static List<string> getcompletionlist(string prefix, int count)
{
string[] dccfields = null;
List<string> ret = new List<string>();
try
{
dccfields = DCC.get_field_names();
return OFControls.get_autocomplete_list(dccfields, prefix);
}
catch (Exception ex)
{
ret.Add("!" + ex.Message);
return ret;
}
}
aspx page:
<asp:TextBox ID="TextBox12" runat="server"></asp:TextBox>
<asp:AutoCompleteExtender
ServiceMethod="getcompletionlist"
MinimumPrefixLength="1"
CompletionInterval="10"
EnableCaching="false"
CompletionSetCount="1"
TargetControlID="TextBox12"
ID="AutoCompleteExtender1"
runat="server"
FirstRowSelected="false"
UseContextKey="True">
</asp:AutoCompleteExtender>
Coming up with error:
Failed to load resource: the server responded with a status of 500 (Internal Server Error) [http://localhost:52966/QBIntegration.aspx]
I've tried adding Service Path - No change. Also specified another method name and got the 404 not found error so it seems that the code is being found just will not run. I also know that it is trying to load it because the 500 error comes up only when typing code in the textbox.
Also ... I do have the toolkitsriptmanager in the master page. <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePageMethods="true"></asp:ToolkitScriptManager>
Thanks in advance