photoalbum.ascx

来自「PhotoAlbum 个人相册网上管理简单系统`````````」· ASCX 代码 · 共 22 行

ASCX
22
字号
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PhotoAlbum.ascx.cs" Inherits="PhotoAlbum" %>
<div style="margin:auto;">
<asp:DataList ID="DataList1" runat="server" RepeatColumns="4" Width="100%">
            <ItemTemplate><div style="width:160px;margin:auto;height:120px;border:1px solid gray;">
            <div>
            <a href="<%#Eval("NormalPhoto")%>" target="_blank"><img style="margin:auto;border:none;padding:5px 5px 5px 5px;" src="<%#Eval("SmallPhoto")%>"  /> </a>
            </div>
        </div>
        
        <div style="color:Gray;text-align:center;height:20px;"><%#Eval("Name") %></div>
        </ItemTemplate>
</asp:DataList>
<div style="margin:auto;height:20px;padding:0px;text-align:right;padding:0px;">
<br />
<asp:LinkButton ID="lbnPrevPage" runat="server" CommandName="prev" OnCommand="Page_OnClick">上一页</asp:LinkButton>
<asp:Label ID="lbCurrentPage" runat="server" Text=""></asp:Label>
&nbsp;&nbsp;<asp:Label ID="lbTotal" runat="server" Text=""></asp:Label>
<asp:LinkButton ID="lbnNextPage" runat="server" CommandName="next" OnCommand="Page_OnClick">下一页</asp:LinkButton>
&nbsp;&nbsp;跳转至第<asp:DropDownList ID="lstPage" runat="server" OnSelectedIndexChanged="lstPage_SelectedIndexChanged1" AutoPostBack="True">
    </asp:DropDownList>页&nbsp;
</div>
</div>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?