当前位置:编程学习 > C#/ASP.NET >>

求后台。。。

<asp:DataList ID="DataList1" runat="server" Height="354px" RepeatColumns="3"
                   HorizontalAlign="Justify" RepeatDirection="Horizontal" 
            Width="1019px" DataSourceID="SqlDataSource26"> 
                  <ItemTemplate> 
                       <table style="width: 154px; height: 111px">           
                           <tr> 
                                <td style="width: 100px">  
                                    <img alt="照片" src='./albumphoto/<%# Eval("photoname") %>' />
                                </td>                 
                            </tr>                 
                            <tr>                    
                            <td style="width: 100px">                         
                                <%# Eval("photoname") %><br />
                                更新时间:<%# Eval("photoupdate") %>
                            </td>
                            </tr>             
                        </table>        
                    </ItemTemplate>     
      </asp:DataList> 
      </div>
              <div>
        
            <table id="tab1" runat="server" border="0" cellpadding="0" cellspacing="0" width="85%" >
                <tr>
                    <td style="height: 22px; background-color:gray;">
                       总共<%= ViewState["TR"].ToString()%>条  分为<%=  ViewState["TP"].ToString()%>页 当前第<%=Convert.ToInt32(ViewState["CP"].ToString()) %>页 每页12条 
                        
                    </td>
                    <td align="right" style="height: 22px; background-color:Gray">
                        <asp:LinkButton ID="FirstPageButton" runat="server" 
                            OnClick="FirstPageButton_Click">首页</asp:LinkButton>
                        <asp:LinkButton ID="PreviousPageButton" runat="server"  
                            OnClick="PreviousPageButton_Click">上一页</asp:LinkButton>
                        <asp:LinkButton ID="NextPageButton" runat="server"  
                            OnClick="NextPageButton_Click">下一页</asp:LinkButton>
                        <asp:LinkButton ID="LastPageButton" runat="server"  
                            OnClick="LastPageButton_Click">末页</asp:LinkButton>
                        <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
                            OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
        
        </div> --------------------编程问答-------------------- 分页的后台啊? --------------------编程问答-------------------- 自己看吧 --------------------编程问答-------------------- DataList分页 --------------------编程问答-------------------- http://www.webdiyer.com/AspNetPagerDemo/default.aspx
补充:.NET技术 ,  ASP.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,