文件操作 - ExpenseApproval.aspx.cs
返回文件管理
返回主菜单
删除本文件
文件: E:\HostingSpaces\kimblycr\howell.kimbly.in\wwwroot\ReportsApproval\ExpenseApproval.aspx.cs
编辑文件内容
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace HowellWebService.ReportsApproval { public partial class ExpenseApproval : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void BtnSearch_Click(object sender, EventArgs e) { DateTime StartDate = Convert.ToDateTime(txtStartDate.Text); DateTime EndDate = Convert.ToDateTime(txtEndDate.Text); SqlDataSource1.SelectParameters[0].DefaultValue = StartDate.ToShortDateString(); SqlDataSource1.SelectParameters[1].DefaultValue = EndDate.ToShortDateString(); GridView1.DataBind(); } protected void BtnExcel_Click(object sender, EventArgs e) { GridViewExportUtil.Export("Expense.xls", this.GridView1); } } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件