booksearch.aspx
来自「这是一个很好的图书管理系统 数据库SQL2005」· ASPX 代码 · 共 131 行
ASPX
131 行
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BookSearch.aspx.cs" Inherits="BookSearch" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>图书信息管理系统-->图书信息查询</title>
</head>
<body>
<form id="form1" runat="server">
<div style="text-align: center">
<table border="1" cellpadding="0" cellspacing="0" style="width: 600px; height: 360px">
<tr>
<td colspan="2" style="width: 600px; height: 30px; background-color: silver;">
<span style="font-size: 18pt">图书信息管理系统--<span style="font-size: 12pt">图书信息查询</span></span></td>
</tr>
<tr style="font-size: 12pt">
<td style="width: 150px; height: 300px">
<asp:Label ID="lbl_Level" runat="server">图书管理员</asp:Label><br />
<asp:Label ID="lbl_UserName" runat="server"></asp:Label><br />
<a href="login.aspx">注销</a><br />
<br />
<br />
<a href="BorrowMan.aspx">借书信息管理</a>
<br />
<a href="ReturnMan.aspx">还书信息管理</a>
<br />
<a href="ReaderSearch.aspx">读者信息查询</a>
<br />
<a href="BookSearch.aspx">图书信息查询</a>
<br />
<br />
<br />
<br />
</td>
<td style="width: 450px; height: 300px">
<div style="text-align: center">
<div style="text-align: center">
<table border="0" cellpadding="0" cellspacing="0" style="width: 400px; height: 200px">
<tr>
<td colspan="3" style="text-align: left; background-color: silver;">
查询条件:</td>
</tr>
<tr>
<td style="width: 120px">
查询类型:</td>
<td style="width: 170px; text-align: left;">
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Value="BookName">图书名</asp:ListItem>
<asp:ListItem Value="ManID">管理编号</asp:ListItem>
</asp:DropDownList></td>
<td style="width: 110px">
</td>
</tr>
<tr>
<td style="width: 120px">
查询内容:</td>
<td style="width: 170px; text-align: left;">
<asp:TextBox ID="txtkey" runat="server"></asp:TextBox></td>
<td style="width: 110px; text-align: left;">
<asp:Button ID="btnSearch" runat="server" Text="开始" Width="57px" OnClick="btnSearch_Click" /></td>
</tr>
<tr>
<td colspan="3" style="text-align: left; background-color: silver;">
查询结果:</td>
</tr>
<tr>
<td colspan="3">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" PageSize="15" AllowPaging="True" CellPadding="1" DataKeyNames="BookID" ForeColor="#333333" OnPageIndexChanging="GridView1_PageIndexChanging">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 110px; height: 19px; text-align: center;">
<%# Eval("BookID")%>
</td>
<td style="width: 110px; height: 19px; text-align: center;">
<%# Eval("BookName")%>
</td>
<td style="width: 110px; height: 19px; text-align: center;">
<%# Eval("ManID")%>
</td>
<td style="width: 80px; height: 19px; text-align: center;">
<asp:LinkButton ID="lblupdate" runat="server" PostBackUrl='<%# "BookDetail.aspx?BookID="+ Eval("BookID") %>'>详细</asp:LinkButton></td>
</tr>
</table>
</ItemTemplate>
<HeaderTemplate>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 110px; height: 19px; text-align: center">
图书编号</td>
<td style="width: 110px; height: 19px; text-align: center">
图书名</td>
<td style="width: 110px; height: 19px; text-align: center">
管理编号</td>
<td style="width: 80px; height: 19px; text-align: center">
详细
</td>
</tr>
</table>
</HeaderTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<EditRowStyle BackColor="#999999" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:GridView>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
<tr style="font-size: 12pt">
<td colspan="2" style="width: 600px; height: 30px; background-color: gainsboro;">
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?