What is the difference between web services and code calls using ajax?

Is there any difference in using one over the other?

Should I get data from a database using web services? Or is it better to call methods from code (or somewhere similar) using ajax to retrieve data?

+3
source share
2 answers

When you say "calling methods from codebehind," what do you mean? Do you mean page methods? These are web services, only limited.

+1
source

, - "-", -, SOAP. , . HTTP, .

, , SOAP - -/ , . , ( ), . - REST.

- ASP.NET , .

+1

Source: https://habr.com/ru/post/1711003/


All Articles