Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 使用VB向和ASP ListView添加分页_Asp.net_Sql_Vb.net_Oracle_Paging - Fatal编程技术网

Asp.net 使用VB向和ASP ListView添加分页

Asp.net 使用VB向和ASP ListView添加分页,asp.net,sql,vb.net,oracle,paging,Asp.net,Sql,Vb.net,Oracle,Paging,我正在尝试为我正在工作的站点设置分页,我正在使用列表视图。我读了很多书,但对我来说似乎没有什么意义。下面是我正在进行的代码查询类型,我在VB和oracle中工作: <ItemTemplate> <div class="listItemWrap"> <div class="leadListItem"> <div class="left leadListCol1 borderNone">

我正在尝试为我正在工作的站点设置分页,我正在使用列表视图。我读了很多书,但对我来说似乎没有什么意义。下面是我正在进行的代码查询类型,我在VB和oracle中工作:

<ItemTemplate>
    <div class="listItemWrap">
        <div class="leadListItem">
            <div class="left leadListCol1 borderNone">
                <h3 class="upperCase"><%#Eval("lead_name")%></h3>
                <h3><%# Eval("leadcode")%></h3>
            </div>
            <div class="left leadListCol2">
                <h3>EMAILS <span>
                    <asp:Image ID="EmailsTickCross" runat="server" ImageUrl="/Images/Layout/Tick.jpg" /></span></h3>
                <h3>CALLS <span>
                    <asp:Image ID="CallsTickCross" runat="server" ImageUrl="/Images/Layout/Cross.jpg" /></span></h3>
                <h3>POSTAL <span>
                    <asp:Image ID="PostalTickCross" runat="server" ImageUrl="/Images/Layout/Tick.jpg" /></span></h3>
            </div>
            <div class="left leadListCol3">
                <h3>LATEST INSIGHT VISIT:</h3>
                <p class="upperCase"><%# CType(Eval("last_insight"), Date).ToString("dd-MMM-yy")%></p>
            </div>
            <div class="left leadListCol4">
                <asp:Button ID="ActiveProfileBtn" CommandArgument='<%# Eval("leadcode")%>' runat="server" Text="VIEW PROFILE" CssClass="viewProfile right" />
                <h3>LATEST HPB ACTIVITY:</h3>
                <p>NA</p>
            </div>
            <div class="clr"></div>
            <div class="leadListNotes">
                <h3>NOTES:</h3>
                <p><%# GetNotes(Eval("leadcode"))%></p>
            </div>
        </div>
    </div>
</ItemTemplate> 

这方面的任何帮助都会很好,我真的很坚持这一点。大约有20000行,因此我肯定需要分页。

您可以使用为每行分配一个数字。然后对该列进行筛选,例如仅获取第20到30行。那么,您是否会在每次单击按钮时增加或减少一个参数,然后使用新行再次运行查询?像那样的?是的,像那样的。
        Dim DT As New DataTable
        Dim oCnn As New OracleConnection(OracleConnectionString)
        Dim da As New OracleDataAdapter("select * from web_table", oCnn)
        Try
            oCnn.Open()
            da.Fill(DT)
        Catch ex As Exception
        Finally
            oCnn.Close()
        End Try

        ActiveLeadsListView.DataSource = DT
        ActiveLeadsListView.DataBind()