traumas_2000 - 2014-02-23

I was identified the main problem it is present in the anthem.js.
The first problem identified is in the eval function on Anthem_GetResult.
Oh my god, y fix it this:
eval( "("+responseText +")");
with this:
var result = { "value": null, "error": null,
"viewState": null, "script": null,
"viewStateEncrypted": null, "eventValidation": null,
"controls": null, "pagescript": null, "end": null
};
var responseText = x.responseText;
var leng = 0;
var cadena = "";
var myArray = [];

cadena = '"value":';
result.value = x.responseText.substring(x.responseText.indexOf(cadena) + cadena.length, x.responseText.indexOf('"error":') - 1);
cadena = '"error":';
leng = GetKeyEventResult(x, cadena);
result.error = x.responseText.substring(x.responseText.indexOf(cadena) + cadena.length, leng - 1);
cadena = '"viewState":';
if (x.responseText.indexOf(cadena) > -1) {
leng = GetKeyEventResult(x, cadena);
result.viewState = x.responseText.substring(x.responseText.indexOf(cadena) + cadena.length, leng - 1);
}
cadena = '"viewStateEncrypted":';
if (x.responseText.indexOf(cadena) > -1) {
leng = GetKeyEventResult(x, cadena);
result.viewStateEncrypted = x.responseText.substring(x.responseText.indexOf(cadena) + cadena.length, leng - 1);
}
cadena = '"eventValidation":';
if (x.responseText.indexOf(cadena) > -1) {
leng = GetKeyEventResult(x, cadena);
result.eventValidation = x.responseText.substring(x.responseText.indexOf(cadena) + cadena.length, leng - 1);
}
cadena = '"controls":';
if (x.responseText.indexOf(cadena) > -1) {
leng = GetKeyEventResult(x, cadena);
result.controls = x.responseText.substring(x.responseText.indexOf(cadena) + cadena.length, leng - 1);
}
cadena = '"pagescript":';
if (x.responseText.indexOf(cadena) > -1) {
myArray = []; //ReUse & Inicialize the array, string data, this fix the issue of [] array, because Manager.cs need
//use, becaues this char {, cause errors in string arrays.
leng = GetKeyEventResult(x, cadena);
myArray.push(x.responseText.substring(x.responseText.indexOf(cadena) + cadena.length + 1, leng - 2));
result.pagescript = myArray;
}
cadena = '"script":';
if (x.responseText.lastIndexOf(cadena) > -1) {
myArray = []; //ReUse & Inicialize the array, string data, this fix the issue of [] array, because Manager.cs need
//use, becaues this char {, cause errors in string arrays.
leng = GetKeyEventResult(x, cadena);
myArray.push(x.responseText.substring(x.responseText.lastIndexOf(cadena) + cadena.length + 1, leng - 2));
result.script = myArray;
}
With this i fix the problem of response, but I discovered other mistake, the problem is presented, after callback, for example you clicked imagebutton, and the object continue the lifecycle of request, and the code updates the viewstate, this viewstate is different to the aspx server & send ones error of web page is sick or with flue.

Notes: Please ignore, alerts & take the new function of GetKeyEventResult, to do manual conversion to object. And I add the new tag '"end":', this tag helps to substring in easy manner the strings.
In the manager copy the lines of value or error, chanege the tag for end, and the value always send null, like this:

private static void WriteValueAndError(...
--sb.Length;
sb.Append ( "]" );
}
//Add this tag to find in Anthem_GetResult
//Because the scripts & pagescript array is speacial
//for the { char, & manager create [] array.
// to fix the stupid eval, didn't create js object,
// we need to do substring at manual form.
//This tag help to find & create result object.
sb.Append ( ",\"end\":" );
WriteValue ( sb, null );

sb.Append("}");
}//ENd Method => WriteValueAndError

This works fine, the problem now, it is the new error of when the viewstate it was changed.