文件操作 - LeaveTest.aspx
返回文件管理
返回主菜单
删除本文件
文件: E:\HostingSpaces\kimblycr\howell.kimbly.in\wwwroot\LeaveTest.aspx
编辑文件内容
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LeaveTest.aspx.cs" Inherits="HowellWebService.LeaveTest" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <div>Leave Type</div> <div> <asp:DropDownList ID="DDLLeaveType" runat="server" DataSourceID="SqlDataSource1" DataTextField="Type" DataValueField="ID" Height="24px" Width="165px"></asp:DropDownList> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" SelectCommand="SELECT [ID], [Type] FROM [LeaveTypes] ORDER BY [ID]"></asp:SqlDataSource> </div> <div>EmpID</div> <div> <asp:DropDownList ID="DDLEmp" runat="server" Height="25px" Width="176px" DataSourceID="SqlDataSource2" DataTextField="Name" DataValueField="CardNo"> </asp:DropDownList> <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" SelectCommand="SELECT [Name], [CardNo] FROM [Employees] ORDER BY [Name]"></asp:SqlDataSource> </div> <div>Start Date</div> <div> <asp:TextBox ID="txtStartDate" type="date" runat="server"></asp:TextBox> </div> <div>End Date</div> <div> <asp:TextBox ID="txtEndDate" type="date" runat="server"></asp:TextBox> </div> <div>Day Type</div> <div> <asp:DropDownList ID="DDLDayType" runat="server" Height="25px" Width="181px"> <asp:ListItem>Full Day</asp:ListItem> <asp:ListItem>Half Day</asp:ListItem> </asp:DropDownList> </div> <div> <asp:Button ID="BtnSave" runat="server" Text="Test" OnClick="BtnSave_Click" /> </div> <div> <asp:Label ID="lblResult" runat="server" Text="Label"></asp:Label> </div> </div> </form> </body> </html>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件