UI/Login.aspx.cs

(开头部分) 3KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Models;
using BLL;
using System.Data;

namespace UI
{
    public partial class Login : System.Web.UI.Page
    {
        Manager m = new Manager();
        UserInfo u = new UserInfo();
        protected void Page_Load(object sender, EventArgs e)
        {
            UnobtrusiveValidationMode = UnobtrusiveValidationMode.None;
        }

        protected void btnLogin_Click(object sender, EventArgs e)
        {
            
            //if (u.Username != this.name.Text)
            //{
            //    Response.Write("<script>alert('姓名不正确,请重新输入');</script>");
            //}
            //else if (u.UserPwd != this.pwd.Text)
            //{
            //    Response.Write("<script>alert('密码不正确,请重新输入');</script>");
            //}
            //else if (u.Username != this.name.Text && u.UserPwd != this.pwd.Text)
            //{
            //    Response.Write("<script>alert('都不正确,请重新登录');</script>");
            //}
            //Response.Write("<script>alert('登录成功');</script>");
            //if (u.Username == this.name.Text && u.UserPwd == this.pwd.Text)
            //{
            //    Response.Write("<script>alert('登录成功');</script>");
            //    Response.Write("<script>window.location='Index.aspx';</script>");
            //}
            //else
            //{
            //    if (u.Username != this.name.Text && u.UserPwd != this.pwd.Text)
            //    {
            //        Response.Write("<script>alert('都不正确,请重新登录');</script>");
            //    }
            //    if (u.Username != this.name.Text && u.UserPwd == this.pwd.Text)
            //    {
            //        Response.Write("<script>alert('姓名不正确,请重新输入');</script>");
            //    }
            //    if (u.Username == this.name.Text && u.UserPwd != this.pwd.Text)
            //    {
            //         Response.Write("<script>alert('密码不正确,请重新输入');</script>");
            //    }
            //}
            if (this.name.Text == "" || this.pwd.Text == "")
            {
                Response.Write("<script>alert('请输入用户名密码');</script>");
后面还有 28 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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