温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:个人图书管理系统源码
当前文件路径:MyLibary/BookManage/BookLists.aspx

1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BookLists.aspx.cs" Inherits="BookManage_BookLists" %> 2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
5
<html xmlns="http://www.w3.org/1999/xhtml" > 6
<head runat="server"> 7
<title>无标题页</title> 8
</head> 9
<body> 10
<form id="form1" runat="server"> 11
<div> 12
<table border="0" style="FONT-SIZE: 12px; FONT-FAMILY: Tahoma; BORDER-COLLAPSE: collapse;" cellspacing="0" cellpadding="0" align="center" width=400> 13
<tr> 14
<td align=center height=50><font size=5 face="隶书">书刊信息列表</font> 15
</td> 16
</tr> 17
<tr> 18
19
<td align=center>按书号搜索:<asp:TextBox ID="txtBookID" runat="server"></asp:TextBox> 20
21
<asp:ImageButton ID="imgBtnQuery" runat="server" ImageUrl="~/Images/QUERY.GIF" OnClick="imgBtnQuery_Click" /> 22
</td> 23
</tr> 24
<tr> 25
<td align=center> 26
<asp:GridView ID="GridView1" runat="server" Width=100% AutoGenerateColumns="False" DataKeyNames="BookID" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" AllowPaging="True" OnPageIndexChanged="GridView1_PageIndexChanged" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDeleting="GridView1_RowDeleting" PageSize="15"> 27
<Columns> 28
<asp:HyperLinkField DataNavigateUrlFields="BookID" DataNavigateUrlFormatString="BookDetails.aspx?bookID={0}" HeaderText="题名" DataTextField="BookName" /> 29
<asp:BoundField DataField="BookAuthor" HeaderText="作者" > 30
</asp:BoundField> 31
<asp:BoundField DataField="BookPublish" HeaderText="出版社" > 32
<ItemStyle Wrap="False" /> 33
</asp:BoundField> 34
<asp:CommandField ShowDeleteButton="True" HeaderText="删除" > 35
<ItemStyle Wrap="False" /> 36
</asp:CommandField> 37
</Columns> 38
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" /> 39
<RowStyle BackColor="#EEEEEE" ForeColor="Black" /> 40
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" /> 41
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Right" /> 42
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" /> 43
<AlternatingRowStyle BackColor="Gainsboro" /> 44
</asp:GridView> 45
</td> 46
</tr> 47
<tr> 48
<td> 49
</td> 50
</tr> 51
</table> 52
</div> 53
</form> 54
</body> 55
</html> 56



