Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [InvalidOperationException: Control 'DataList1' does not implement IPageableItemContainer.] System.Web.UI.WebControls.DataPager.FindPageableItemContainer() +500609 System.Web.UI.WebControls.DataPager.OnInit(EventArgs e) +33 System.Web.UI.Control.InitRecursive(Control namingContainer) +333 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378
<fieldset> <legend align="right">بانک های موجود در دیتا بیس</legend> <br /> <asp:DataList ID="DataList1" runat="server" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2" ForeColor="Black"> <FooterStyle BackColor="Tan" /> <AlternatingItemStyle BackColor="PaleGoldenrod" /> <SelectedItemStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" /> <HeaderStyle BackColor="Tan" Font-Bold="True" /> <ItemTemplate> <br /> <table border="0" align="center" style="width: 93%" cellpadding="3" cellspacing="1"> <tr> <td> <%# DataBinder.Eval(Container.DataItem, "TextBoxMerchantID") %> <asp:DropDownList ID="DropDownListBankName" runat="server" CssClass="DropDownList"> <asp:ListItem Selected="True">ملی</asp:ListItem> <asp:ListItem>پارسیان</asp:ListItem> </asp:DropDownList> </td> <td> نام بانک </td> </tr> <tr> <td> <asp:TextBox ID="TextBoxBankAccount" runat="server" CssClass="textbox" MaxLength="50" Text='<%# DataBinder.Eval(Container.DataItem, "TextBoxBankAccount") %>'></asp:TextBox> </td> <td> شماره حساب </td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td> MerchantID </td> <td> <asp:TextBox ID="TextBoxMerchantID" runat="server" CssClass="textbox" MaxLength="50" Text='<%# DataBinder.Eval(Container.DataItem, "TextBoxMerchantID") %>'></asp:TextBox> </td> </tr> <tr> <td> TerminalID </td> <td> <asp:TextBox ID="TextBoxTerminalID" runat="server" CssClass="textbox" MaxLength="50" Text='<%# DataBinder.Eval(Container.DataItem, "TextBoxTerminalID") %>'></asp:TextBox> </td> </tr> <tr> <td> TransactionKey </td> <td> <asp:TextBox ID="TextBoxTransactionKey" runat="server" CssClass="textbox" MaxLength="50" Text='<%# DataBinder.Eval(Container.DataItem, "TextBoxTransactionKey") %>'></asp:TextBox> </td> </tr> </table> <br /> <br /> </ItemTemplate> </asp:DataList> </fieldset> <br /><br /> <asp:DataPager ID="DataPager1" runat="server" PagedControlID="DataList1"> <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>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)