denglu.aspx.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
// 下载于www.51aspx.com
namespace login
{
    public partial class login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                HttpCookie cookies = Request.Cookies["USER_COOKIE"];
                if (cookies != null)
                {
                    this.txtname.Text = cookies["UserName"];
                    this.txtpwd.Attributes.Add("value", cookies["UserPassword"]);
                    this.remme.Checked = true;
                }
            }
        }

        protected void btndenglu_Click(object sender, EventArgs e)
        {
            string uName = this.txtname.Text;
            string uPassword = this.txtpwd.Text;
            if (txtname.Text == "51aspx" && txtpwd.Text == "51aspx")
            {
                HttpCookie cookie = new HttpCookie("USER_COOKIE");
                if (this.remme.Checked)
                {
                    cookie.Values.Add("UserName", this.txtname.Text.Trim());
                    cookie.Values.Add("UserPassword", this.txtpwd.Text.Trim());
                    cookie.Expires = System.DateTime.Now.AddDays(7.0);
                    HttpContext.Current.Response.Cookies.Add(cookie);
                }
                else
                {
                     if (cookie["USER_COOKIE"] != null)
                     {
                         Response.Cookies["USER_COOKIE"].Expires = DateTime.Now;  
                     }
                }
                Response.Redirect("toupiao.aspx");
            }
        }

        protected void btnzhuce_Click(object sender, EventArgs e)
        {
            Response.Redirect("zhuce.aspx");
        }

        protected void remme_CheckedChanged(object sender, EventArgs e)
        {

        }
    }
后面还有 1 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。