I need a STL C++ class that will decode ASP.NET ViewState data to an XML.
The provided class must support both; asp.net 1.1 and 2.0 versions
Here is an example of such tool:
[login to view URL]
And a good article about it:
[login to view URL]
The C++ class must provide following interface.
class ViewStateDecoder
{
public:
bool DecodeHTML(const string& html, string& xml);
bool DecodeString(const string& str, string& xml);
... helper hunctions
}
the first method extracts '__VIEWSTATE' from provided HTML, the second receives VIEWSTATE in a string. Both methods return false in case of error.