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?
When you say "calling methods from codebehind," what do you mean? Do you mean page methods? These are web services, only limited.
, - "-", -, SOAP. , . HTTP, .
, , SOAP - -/ , . , ( ), . - REST.
- ASP.NET , .
Source: https://habr.com/ru/post/1711003/More articles:Installing standard fonts in C # - c #What is the best way to separate MVC controller functions? - model-view-controllerhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1711000/is-it-possible-to-access-to-a-com-object-in-linux-with-php&usg=ALkJrhhhmY4RTcaPzJ3voehEXjjR2PolFglinq to sql + update table - c #LINQ to SQL :: data update problem - c #Has anyone used the Kofax Capture API to create an Importer to create a batch in Kofax - apiDebugging .NET 2.0 Web Services from VS2003? - asp.netHow to convince Linq in Sql to generate Sql to compare strings with larger or smaller? - c #How to gracefully disable Spring JMS MessageListenerAdapter - javaHow do I branch and tag before and after release? - svnAll Articles