Oct 6 2006
I posted on my website an article showing in detail how to use an ASHX generic HTTP handler to answer simple AJAX requests. This is itended as an answer to many questions on various newsgroups I visit, asking how to use web services to perform simple tasks. In many cases, using SOAP based web services is overkill, and it's much easier and faster to use AJAX with plain old XML (POX) as a transport medium. It has actually become even easier with ASP.NET 2.0 and the ASHX handler, which allows lightweight handling of HTTP requests, without the heavy .NET machinery. ASHX handlers are a very elegant way to avoid all this, and provide an lean entry point to server-side code.