文件操作 - Guards.aspx
返回文件管理
返回主菜单
删除本文件
文件: E:\HostingSpaces\kimblycr\guard.kimbly.in\wwwroot\Guards.aspx
编辑文件内容
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Guards.aspx.cs" Inherits="Guards" %> <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server"> <table class="style1"> <tr> <td colspan="2"> <h1> Employees</h1><hr /> </td> </tr> <tr> <td width="10%"> Site</td> <td> <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource2" DataTextField="SiteName" DataValueField="AutoID" Width="200px" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged"> </asp:DropDownList> <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" SelectCommand="SELECT [AutoID], [SiteName] FROM [Sites]"> </asp:SqlDataSource> </td> </tr> <tr> <td colspan="2"> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="DDGridView" HeaderStyle-CssClass="th" RowStyle-CssClass="td" DataSourceID="SqlDataSource1" Width="50%"> <Columns> <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" /> <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" /> </Columns> <HeaderStyle CssClass="th"></HeaderStyle><RowStyle CssClass="td"></RowStyle> </asp:GridView> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" SelectCommand="SELECT [AutoID], [Name], [ID] FROM [Guards] WHERE ([SiteID] = @SiteID)"> <SelectParameters> <asp:ControlParameter ControlID="DropDownList1" Name="SiteID" PropertyName="SelectedValue" Type="Int32" /> </SelectParameters> </asp:SqlDataSource> </td> </tr> </table> </asp:Content>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件