利用JQuery方便实现基于Ajax的数据查询、排序和分页功能

作者:凯旋网络来源:凯旋网络
;     <a href="#" pageindex="<% =dataview.PrevPage%>">上一页</a>

        <a href="#" pageindex="<% =dataview.NextPage %>" >下一页</a>

        <a href="#" pageindex="<% =dataview.PageCount-1%>">末页</a>

        当前<%=dataview.PageIndex+1%>页/共<%=dataview.PageCount %>页

        </td>

    </tr>

 

    <%}%>

    <tr>

        <td style="width: 100px; font-weight: bold; background-color: activeborder;">

            <a href="#" orderfield="<%=dataview.GetOrderInfo("CompanyName")%>" >CustomerName</a></td>

        <td style="width: 100px; font-weight: bold; background-color: activeborder;">

            <a href="#" orderfield="<%=dataview.GetOrderInfo("Employees.EmployeeID")%>" >EmployeeName</a></td>

        <td style="width: 100px; font-weight: bold; background-color: activeborder;">

            <a href="#" orderfield="<%=dataview.GetOrderInfo("OrderDate")%>" >OrderDate</a></td>

        <td style="width: 100px; font-weight: bold; background-color: activeborder;">

            <a href="#" orderfield="<%=dataview.GetOrderInfo("RequiredDate")%>" >RequireDate</a></td>

        <td style="width: 100px; font-weight: bold; background-color: activeborder;">

            ShipAddress</td>

        <td style="width: 100px; font-weight: bold; background-color: activeborder;">

            ShipCity</td>

        <td style="width: 100px; font-weight: bold; background-color: activeborder;">

            SipCountry</td>

    </tr>

    <%foreach(Order_v item in dataview.DataItems)

      { %>

    <tr>

        <td style="width: 100px"><%=dataview.ToValue(item.CustomerName)%>

        </td>

        <td style="width: 100px"><%=dataview.ToValue(item.EmployeeName)%>

        </td>

  

  • 广告推荐