(Before marking this question as duplicate, I've tried all the other questions, most of them have outdated links and doesn't solve my problem)
I'm trying to make a simple autocomplete function but the Code-Behind is never called.
Login.aspx:
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
</asp:ScriptManager>
<asp:TextBox ID="TextBox1" runat="server" autofocus="autofocus"></asp:TextBox>
<cc1:AutoCompleteExtender ID="ACE" runat="server" ServiceMethod="GetCompletionList"
ServicePath="~/App_Code/Common.cs"
TargetControlID="TextBox1"
MinimumPrefixLength="1"
CompletionSetCount="10" >
</cc1:AutoCompleteExtender>
</form>
Common.cs:
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static string[] GetCompletionList(string prefixText, int count)
{
return new string[] { "test1", "test2", "test3" }
}