ajax call handling on asp.net serverside -


i'm working on asp.net project based on asp.net ajax more , more client side calls using jquery ($.ajax) , json or html return. i'm wondering best way handle these calls on server side, in same webform, or use specific http handler, or web service? can share experience or best practice? thanks.

i'd recommend http handler. it's best , simplest option.

there no problem on managing ajax call using page method (marked webmethod , static), drawback can called page. http handler independent , can called page.

the web service suitable calling third party api, don't see need create 1 ajax calls on own web site.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -