This article gives you step by step example for implementing Page Method and calling it through jQuery.ajax() call.