Receive data from PostBack in JavaScript
<p>I'm using jQuery to make postback then in my <code>.ascx</code> file I have code like this:</p>

<pre><code>Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
function EndRequestHandler(sender, args) {
    if (args.get_error() == undefined) {
        var dataItems = args.get_dataItems();
        alert(dataItems['ctl00_cphContent_articleList_tbUpdate']);
    }
}
</code></pre>

<p>Where on the Internet can I find specification of <code>args</code> object? What methods has it got? </p>

<p>Second, why do I have to pass in my server side data into control using ScriptManager?</p>

<p>Code on the server side is:</p>

<pre><code>ScriptManager.GetCurrent(this.Page).RegisterDataItem(tbUpdate, DateTime.Now.ToString());
</code></pre>

<p>and tbUpdate is the control on the site.</p>

<p>Is there any more elegant way to get access to data sent back to the client side. Do I have to send this data to any control? What does it really mean that data is sent to control?
How can I consume this data from that control? I had to use <a href="http://en.wikipedia.org/wiki/Firebug" rel="nofollow">Firebug</a> to find the id of the control and get access to it.</p>
