banbie_test.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:3k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="banbie_test.aspx.cs" Inherits="web_banbie_test" %>
- <!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">
- <center>
- <div>
- <asp:Label ID="Label1" runat="server" Width="493px"></asp:Label> <asp:GridView ID="GridView1" runat="server" AllowSorting="True"
- AutoGenerateColumns="False" Width="523px" PageSize="20" RowHeaderColumn="编号" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing"
- OnRowUpdating="GridView1_RowUpdating" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDataBound="GridView1_RowDataBound">
- <PagerSettings PageButtonCount="6" />
- <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
- <Columns>
- <asp:BoundField DataField="编号" HeaderText="编号" ReadOnly="True"/>
- <asp:BoundField DataField="班别" HeaderText="班别"/>
- <asp:BoundField DataField="开始时间" HeaderText="起始时间" />
- <asp:BoundField DataField="结束时间" HeaderText="结束时间" />
- <asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True" Visible="False"/>
- <asp:CommandField HeaderText="编辑" ShowEditButton="True" >
- <HeaderStyle Width="2cm" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
- <ItemStyle Width="2cm" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
- <FooterStyle Width="2cm" />
- <ControlStyle Width="2cm" />
- </asp:CommandField>
- <asp:CommandField HeaderText="删除" ShowDeleteButton="True" >
- <ItemStyle Width="2cm" />
- </asp:CommandField>
- </Columns>
- <RowStyle ForeColor="#000066" />
- <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" VerticalAlign="Middle" />
- <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
- <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
- </asp:GridView>
- <asp:Button ID="Button1" runat="server" BackColor="Silver" ForeColor="Black" OnClick="Button1_Click"
- Text="添加" Width="1.5cm" />
- </div>
- </center>
- </form>
- </body>
- </html>