I read an article some time back that explaind how I could add a webservice function to my aspx file for my ajax callbacks to call. Now I can’t find this article or any other documentation on this.
Anyone using this and can you explain how to do this?
Thanks
Endre
I believe you need to mark the method as a [WebMethod]
Link
From the above article:
public partial class Products : System.Web.UI.Page
{
[System.Web.Services.WebMethod()]
[System.Web.Script.Services.ScriptMethod()]
public static List GetProducts(int cateogryID)
{
// Put your logic here to get the Product list
}