SearchBook.aspx
上传用户:gooyliu
上传日期:2018-09-29
资源大小:5816k
文件大小:3k
源码类别:

.net编程

开发平台:

C#

  1. <%@ Page Language="C#" MasterPageFile="~/Reader/ReaderMasterPage.Master" AutoEventWireup="true"
  2.     CodeBehind="SearchBook.aspx.cs" Inherits="Web.Reader.SearchBook" Title="Untitled Page" %>
  3. <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  4.     <table>
  5.         <tr>
  6.             <td>
  7.                 图书种类:
  8.             </td>
  9.             <td>
  10.                 <asp:DropDownList ID="ddlBookType" runat="server" AutoPostBack="True">
  11.                 </asp:DropDownList>
  12.             </td>
  13.             <td>
  14.                 查询途径:
  15.             </td>
  16.             <td>
  17.                 <asp:DropDownList ID="ddlQueryType" runat="server" AutoPostBack="True">
  18.                     <asp:ListItem Value="bookName">题名</asp:ListItem>
  19.                     <asp:ListItem Value="author">作者</asp:ListItem>
  20.                     <asp:ListItem Value="keyword">主题词</asp:ListItem>
  21.                 </asp:DropDownList>
  22.             </td>
  23.             <td>
  24.                 查询内容:
  25.             </td>
  26.             <td>
  27.                 <asp:TextBox ID="txtContent" runat="server"></asp:TextBox>
  28.             </td>
  29.             <td>
  30.                 <asp:Button ID="btnSearch" Text="搜索" runat="server" OnClick="btnSearch_Click" />
  31.             </td>
  32.         </tr>
  33.         <tr>
  34.             <td colspan="7">
  35.                 <asp:GridView ID="BookList" runat="server" AutoGenerateColumns="False" CellPadding="4"
  36.                     ForeColor="#333333" GridLines="None" Width="841px" Height="142px" OnRowDataBound="BookList_RowDataBound">
  37.                     <Columns>
  38.                         <asp:BoundField DataField="bookName" HeaderText="题名" />
  39.                         <asp:BoundField DataField="bookIndex" HeaderText="索书号" />
  40.                         <asp:BoundField DataField="author" HeaderText="作者" />
  41.                         <asp:BoundField DataField="publish" HeaderText="出版社" />
  42.                         <asp:BoundField DataField="status" HeaderText="图书状态" />
  43.                     </Columns>
  44.                     <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
  45.                     <RowStyle BackColor="#EFF3FB" />
  46.                     <EditRowStyle BackColor="#2461BF" />
  47.                     <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
  48.                     <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
  49.                     <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
  50.                     <AlternatingRowStyle BackColor="White" />
  51.                 </asp:GridView>
  52.             </td>
  53.         </tr>
  54.     </table>
  55. </asp:Content>