Charles wrote:
Great work. Thank you for extending C9 functionality. This type of thing is HIGHLY encouraged.
It would've been a lot easier though if there was a web service I could've used to update the profile.

As it is, I first request the login page, extract the viewstate from it, then post the credentials to the login page (together with said viewstate), retrieve the login cookie. Then I request the EditProfile page, using the login cookie, and extract the viewstate and the current profile data. I then use that data, together with the new avatar caption, to construct a complete EditProfile postback in multipart/form-data format, and send that to the server. Not exactly efficient, although it was fun figuring out how to do it.

Also, I thank the gods for the HtmlAgilityPack, which made extracting stuff from the html pages
so much easier. This isn't the first project where that library has been a real lifesaver for me. It gets my nomination for "most useful third-party .Net library".
