Scriptmanager error in datapager
<p>I have a datapager which is bind to a listview. The issue is whenever I paginate to the next set of page I get the following error. Initially I get the pages 1,2,3 when I click "..." I get the next set of page numbers 4,5,6. The error occurs when I click 5 or try to go back to the previous set (1,2,3) by clicking "First" or "...". Both the datapager and listview are in Updatepanel.</p>

<blockquote>
  <p>Microsoft JScript runtime error: Sys.ArgumentNullException: Value
  cannot be null. Parameter name: array</p>
</blockquote>

<p>This error occurs in the following JS function in ScriptResource.axd</p>

<pre><code>$type.indexOf = function Array$indexOf(array, item, start) {
    /// &lt;summary locid="M:J#Array.indexOf"&gt;Finds the index in the array of the provided item.&lt;/summary&gt;
    /// &lt;param name="array" type="Array" elementMayBeNull="true"&gt;The array to look into.&lt;/param&gt;
    /// &lt;param name="item" optional="true" mayBeNull="true"&gt;The object to find.&lt;/param&gt;
    /// &lt;param name="start" optional="true" mayBeNull="true"&gt;The index where the search begins.&lt;/param&gt;
    /// &lt;returns type="Number"&gt;The index of the item or -1 if it wasn't found.&lt;/returns&gt;
    var e = Function._validateParams(arguments, [
        {name: "array", type: Array, elementMayBeNull: true},
        {name: "item", mayBeNull: true, optional: true},
        {name: "start", mayBeNull: true, optional: true}
    ]);
    if (e) throw e;
    return indexOf(array, item, start);
}
</code></pre>

<p>It would be great if you can let me know on how this issue can be fixed. </p>

<p>Thanks in advance.</p>
