I see, you missed adding a
[WebMethod]
attribute on your static method in .aspx.cs code file. Secondly you may or may not have added ScriptManager on your page. Please confirm these both things and rest is looking good to go with.
For further details, try
this link[
^]
Or
You can download a sample of what you required from my OneDrive account.
try this sample[
^]