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

.net编程

开发平台:

C#

  1. <%@ Page Language="C#" MasterPageFile="~/SysAdmin/sysAdminMasterPage.Master" AutoEventWireup="true"
  2.     CodeBehind="BookList.aspx.cs" Inherits="Web.SysAdmin.BookList" Title="图书列表" %>
  3. <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  4.     <asp:GridView ID="GridviewBookList" runat="server"  DataKeyNames="bookID" AutoGenerateColumns="False" OnRowDeleting="GridviewBookList_RowDeleting"
  5.         Width="291px" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
  6.         CellPadding="3" GridLines="Vertical">
  7.         <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
  8.         <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
  9.         <Columns>
  10.             <asp:BoundField HeaderText="题名" DataField="bookName"  ItemStyle-Wrap="false"/>
  11.             <asp:BoundField HeaderText="作者" DataField="author" ItemStyle-Wrap="false"/>
  12.             <asp:BoundField HeaderText="出版社" DataField="publish" ItemStyle-Wrap="false"/>
  13.             <asp:CommandField HeaderText="删除" DeleteText="删除" ShowDeleteButton="True" >
  14.                 <ItemStyle Wrap="False" />
  15.             </asp:CommandField>
  16.             <asp:HyperLinkField HeaderText="详细" DataNavigateUrlFields="bookID" DataNavigateUrlFormatString="ModifyBook.aspx?bookID={0}"
  17.                 Text="详细..."  ItemStyle-Wrap="false" >
  18. <ItemStyle Wrap="False"></ItemStyle>
  19.             </asp:HyperLinkField>
  20.         </Columns>
  21.         <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
  22.         <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
  23.         <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
  24.         <AlternatingRowStyle BackColor="#DCDCDC" />
  25.     </asp:GridView>
  26. </asp:Content>