I am trying learn about Ajax using ASP.Net
When I google it to do ajax, there are so many ways they are sending data and retrieving data like (thorough: webservice / webmethod / server side code).
I know what is the use of WebService.
But I didn't get the clear information about webmethod. And what will be the difference between webmethod and server side code
I saw this Difference between webservice, web methods & server side code? as well. But they didn't give more information about webmethod.
I want to know in which scenario basis that I should go with webMethod and Server side code.
Please give me a real time example