I have some legacy code where:
- ASP .NET page sends request using proxy to ASMX
- Before sending request, I manually (in JavaScript) pack all necessary data into structures required by proxy
- From time to time I get random InvalidOperationException when executing that service
As a result, I would like to get rid of asmx mechanism.
What I would like to do, is take advantage of jQuery and just simply POST JSONed data to ASP .NET …. But, where should I post it, to aspx page? What are the approaches in ASP .NET 2.0? Provided I’m using jQuery, how should the server side look? Do I have to anyway create aspx file as request entry point and code behind class (that inherits from Page) with logic?
Thanks,Pawel
You could use WCF to write a REST Service that uses JSON.