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

.net编程

开发平台:

C#

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