So, I'm trying to write some AJAX functionality for an ASP.NET site at work. I'm sure that what I'm doing is easily achievable using the actual AJAX framework, but I hate it and I kind of enjoy fiddling around with things.
I've got most of the stuff worked out- I can load the page, change the properties of some controls, send the changes back to the browser and Response.End(). So far so good.
My only problem at the moment is that I can't automatically detect what changes have been made- I have to specify what to send back to the browser. Now, the page has a ViewState object that is basically just a like a HashTable (or something similar) that tracks changes to the page. Does anyone know how I could go about comparing two ViewState objects and somehow pull out the values that are different?