He says the PageMethods parameter is undefined.
Yes. You definitely can. Just make sure the WebMethod is declared as public static , you specified it using the correct namespace, and the property EnablePageMethods for the parameter is ScriptManager set to true .
public static
EnablePageMethods
ScriptManager
true