I'm gonna use DataPager as follows :
I have a HTML Table :
<table id="TableBanks" runat="server" border="0" align="center" style="width: 93%"
cellpadding="3" cellspacing="1">
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td> MerchantID </td>
<td><asp:TextBox ID="TextBoxMerchantID" runat="server" CssClass="textbox" MaxLength="50"></asp:TextBox></td>
</tr>
<tr>
<td> TerminalID </td>
<td><asp:TextBox ID="TextBoxTerminalID" runat="server" CssClass="textbox" MaxLength="50"></asp:TextBox></td>
</tr>
<tr>
<td> TransactionKey </td>
<td><asp:TextBox ID="TextBoxTransactionKey" runat="server" CssClass="textbox" MaxLength="50"></asp:TextBox></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><asp:Label ID="LabelResult" runat="server" Style="color: Gray;"></asp:Label></td>
</tr>
</table>
Now I wanna use it in DataPager, I mean I want dataPager repeat it.
this is my DataPager:
<asp:DataPager ID="DataPager1" runat="server" PagedControlID="TableBanks">
<Fields>
<asp:NextPreviousPagerField ButtonType="Link" ShowFirstPageButton="True" ShowNextPageButton="False"
ShowPreviousPageButton="True" FirstPageText="<<" LastPageText=">>" NextPageText=">"
PreviousPageText="<" RenderDisabledButtonsAsLabels="false" />
<asp:NumericPagerField />
<asp:NextPreviousPagerField ButtonType="Link" ShowLastPageButton="True" ShowNextPageButton="True"
ShowPreviousPageButton="False" RenderDisabledButtonsAsLabels="false" NextPageText=">"
LastPageText=">>" />
</Fields>
</asp:DataPager>
But the following exception has occurred Control 'TableBanks' does not implement IPageableItemContainer
Any helps would be appreciated.
I'm a newbie in asp.net