banbie_test.aspx
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:3k
源码类别:

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="banbie_test.aspx.cs" Inherits="web_banbie_test" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>无标题页</title>
  6. </head>
  7. <body>
  8.     <form id="form1" runat="server">
  9.     <center>
  10.     <div>
  11.         &nbsp;<asp:Label ID="Label1" runat="server" Width="493px"></asp:Label>&nbsp;<asp:GridView ID="GridView1" runat="server" AllowSorting="True"
  12.             AutoGenerateColumns="False" Width="523px" PageSize="20" RowHeaderColumn="编号" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing"
  13.                         OnRowUpdating="GridView1_RowUpdating" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDataBound="GridView1_RowDataBound">
  14.             <PagerSettings PageButtonCount="6" />
  15.                                 <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
  16.                         <Columns>
  17.                             <asp:BoundField DataField="编号" HeaderText="编号" ReadOnly="True"/>
  18.                             <asp:BoundField DataField="班别" HeaderText="班别"/>
  19.                             <asp:BoundField DataField="开始时间" HeaderText="起始时间" />
  20.                             <asp:BoundField DataField="结束时间" HeaderText="结束时间" />
  21.                             <asp:BoundField DataField="ID" HeaderText="ID"  ReadOnly="True" Visible="False"/>
  22.                             <asp:CommandField HeaderText="编辑" ShowEditButton="True" >
  23.                                 <HeaderStyle Width="2cm" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
  24.                                 <ItemStyle Width="2cm" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
  25.                                 <FooterStyle Width="2cm" />
  26.                                 <ControlStyle Width="2cm" />
  27.                             </asp:CommandField>
  28.                             <asp:CommandField HeaderText="删除" ShowDeleteButton="True" >
  29.                                 <ItemStyle Width="2cm" />
  30.                             </asp:CommandField>
  31.                         </Columns>
  32.                         <RowStyle ForeColor="#000066" />
  33.                         <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" VerticalAlign="Middle" />
  34.                         <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
  35.                         <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
  36.                     </asp:GridView>
  37.         <asp:Button ID="Button1" runat="server" BackColor="Silver" ForeColor="Black" OnClick="Button1_Click"
  38.             Text="添加" Width="1.5cm" />&nbsp;
  39.         </div>
  40.     </center>
  41.     </form>
  42. </body>
  43. </html>