📄 myaccount.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MyAccount.aspx.cs" Inherits="MyAccount" MasterPageFile="~/masterPage.master" Title="用户中心" %>
<%@ Import Namespace="BookManage.Model" %>
<asp:Content ID="accountContent" ContentPlaceHolderID="cphPage" runat="server">
<div class="header">我的借阅列表</div>
<asp:GridView ID="lentList" runat="server" AutoGenerateColumns="False" EnableViewState="false"
Width="100%" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" HorizontalAlign="Center" OnRowDataBound="lentList_RowDataBound" >
<AlternatingRowStyle BackColor="#EEEEEE" />
<HeaderStyle Font-Bold="True" Height="20px" BackColor="#CCCCCC"></HeaderStyle>
<Columns>
<asp:TemplateField HeaderText="图书名称">
<ItemStyle Width="25%" />
<ItemTemplate>
<%# ((BookLentInfo)(Container.DataItem)).BookInfo.BookName%>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="图书编码">
<ItemStyle Width="20%" />
<ItemTemplate>
<%# ((BookLentInfo)(Container.DataItem)).BookInfo.BookCode %>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="StartTime" HeaderText="借阅时间" HtmlEncode="False" DataFormatString="{0:yyyy-M-d HH:mm:ss}" />
<asp:BoundField DataField="EndTime" HeaderText="到期时间" HtmlEncode="False" DataFormatString="{0:yyyy-M-d HH:mm:ss}" />
</Columns>
<EmptyDataTemplate>
<div style="line-height:100px">您目前没有已借图书 , <a href="default.aspx">点击这里</a> 查找您想要的图书</div>
</EmptyDataTemplate>
</asp:GridView>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -