I am calling a web method in aspx page from my js file using AJAX. I have set the method to be [WebMethod] and the page inherits from System.Web.Ui.Page class. Still it does not
The only thing I see missing is making the method static.
read this article
http://encosia.com/using-jquery-to-directly-call-aspnet-ajax-page-methods/