I want to call server side C# function from javascript.
I used the way given in this article.
This works fine when I did the same steps in a new ASP.NET application.
But when I repeat the same steps in the application on which i am working it give the error:
"PageMethods is Undefined".
I am working on .Net 4.0.