First, if you want to implement the server side of jQuery Ajax calls, you can do this using ASMX or WCF services. You can find a brief comparison of the two here . WCF is a more advanced technology and will be my preferred choice for new projects. He can provide you with the following:
- Help you program the interface.
- It will serialize / deserialize the objects for JSON for you. No need for JSON libraries.
- Provides client methods that you can use (via ScriptManager). It is also easy to use jQuery if you prefer
As a flaw, I would say that it takes you some time to learn the technology. I found that setting up web.config correctly was a bit complicated.
Usually I have one svc service that serves all Ajax requests. You can implement as many methods as you want in one service. Services are called from different pages.
source share