WebSite3/Login/LogIn.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CheckOnWork.BusinessLogicLayer;
using CheckOnWork.Model;
public partial class LogIn : System.Web.UI.Page
{
CheckOnWork.BusinessLogicLayer.LoginBLL login = new LoginBLL();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.lblYanZheng.Text = VerificationCode.RandomNum(4).ToString();
this.Session["State"] = null;
}
}
protected void imgBtnCancle_Click(object sender, ImageClickEventArgs e)
{
//Response.Write("<script type='text/javascript'>self.parent.location.href('../manager/Default.aspx')</script>");
txtUser.Text = "";
txtPwd.Text = "";
txtYanzheng.Text = "";
}
protected void imgBtnDenglu_Click(object sender, ImageClickEventArgs e)
{
//HttpContext.Current.Response.Write("<script type='text/javascript'>alert('wrong')</script>");
string role = ddlRole.SelectedValue;
if (txtYanzheng.Text == lblYanZheng.Text)
{
//管理员登录
if (role == "manager")
{
if (login.UserLogin(txtUser.Text, txtPwd.Text, Role.Manager))
{
Response.Write("<script type='text/javascript'>self.parent.location=('../manager/Default.aspx?id=" + txtUser.Text + "')</script>");
Session["State"] = "manager";
Session["managerId"] = txtUser.Text;
}
else
Response.Write("<script type='text/javascript'>alert('用户名密码错误!')</script>");
}//教学秘书登录
else if (role == "dean")
{
if (login.UserLogin(txtUser.Text, txtPwd.Text, Role.Dean))
{
Response.Write("<script type='text/javascript'>self.parent.location=('../dean/Default.aspx')</script>");
Session["State"] = "dean";
Session["deanId"] = txtUser.Text;
后面还有 44 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。