Thought some of you might be interested in this. I recently added a blog topic, [url="http://www.whitefrost.com/blog.jsp?record_id=49"]ASPX .NET: Code In Front[/url:cnnwioi31e], including a link to a downloadable example, on how my [url="http://www.whitefrost.com/projects/engine/"]Engine[/url:cnnwioi31e] project can be used to instrument XMLHTTP calls to the server and, in a rather kludged fashion befitting a demo, invoking a delegate to a specified or custom event handler. For those who don't care for my tongue-in-cheek ramblings, you can skip down about half-way for a basic outline on how I made the example.
The setup isn't very clean, but can be done by adding a few lines to the class for the ASPX, pasting some static HTML into the page, and adding a static HTML attribute to any element (at the moment, the downloadable demo just uses buttons) you want to use XMLHTTP instead of the default full page post.
In other words, in the demo, you click your button and your code gets invoked on the server. The client-side code does not break the default operation, so browsers that don't support XMLHTTP continue as normal.
Stephen W. Cote
wranlon@hotmail.com
http://www.whitefrost.com/