Get current page, data pager?
<p>I have this datapager and I want to get the current page. I checked out the properties of about everything and the MSDN documentation and I still did not find anything useful to get the current page. Can anyone help?</p>

<pre><code>&lt;asp:DataPager ID="DataPager1" runat="server" PagedControlID="ListView1" PageSize="10"&gt;

&lt;Fields&gt;

&lt;asp:NextPreviousPagerField ButtonType="Link" FirstPageText="&lt;&lt;" PreviousPageText="&lt;" ShowFirstPageButton="true" ShowNextPageButton="false" /&gt;

&lt;asp:NumericPagerField ButtonCount="3" /&gt;

&lt;asp:NextPreviousPagerField ButtonType="Link" LastPageText="&gt;&gt;" NextPageText="&gt;" ShowLastPageButton="true" ShowPreviousPageButton="false" /&gt;

&lt;/Fields&gt;

&lt;/asp:DataPager&gt;
</code></pre>
