asp.net - jQuery calls to page method vs web service vs Web API -


i'm working on asp.net web forms application , see lot of areas page posts after dropdownlist selection made, during small amount of data retrieved server populate control (like textbox).

it's not nice user experience have page posting every time make selection, if there 5+ dropdowns on page. eliminate these postbacks i'm thinking of implementing jquery ajax calls (which have experience with).

which recommended: page methods or .asmx web services? aren't .asmx web services considered 'older' technology?

and further, have been reading on web api. alternative page method or web service? web api overkill eliminate bunch of simple postbacks?

the first question i'd ask is... "what's overkill here?". webapi, basically, latest implementation of data retrieval proxy microsoft supports multiple formats (xml/odata/json etc).

it's simple setup, future-proof , can use stand-alone service in own separate project if feel need to; alone makes me use in .net projects , i've not looked back.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -