Backup/XDF/Login.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
namespace XDF
{
public partial class Login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void ButtonLogin_Click1(object sender, EventArgs e)
{
if (TextBoxCheckCode.Text != Session["VALIDATECODEKEY"].ToString())
{
Response.Write("<script>alert('验证码错误');</script>");
return;
}
bool result = false;
if (RadioButtonListRole.SelectedValue == "学生")
{
StudentBLL studentBLL = new StudentBLL();
result = studentBLL.VerifyStudentPwd(TextBoxUserID.Text.Trim(), TextBoxPassword.Text);
}
else if (RadioButtonListRole.SelectedValue == "教师")
{
TeacherBLL teacherBLL = new TeacherBLL();
result = teacherBLL.VerifyTeacherPwd(TextBoxUserID.Text.Trim(), TextBoxPassword.Text); ;
}
else if (RadioButtonListRole.SelectedValue == "管理员")
{
AdminBLL adminBLL = new AdminBLL();
result = adminBLL.VerifyAdminPwd(TextBoxUserID.Text.Trim(), TextBoxPassword.Text);
}
if (result == true)
{
Session["UserRole"] = RadioButtonListRole.SelectedValue;
Session["UserID"] = TextBoxUserID.Text.Trim();
if (RadioButtonListRole.SelectedValue == "学生")
{
Response.Redirect("~/Student/StudentDefault.aspx");
}
else if (RadioButtonListRole.SelectedValue == "教师")
{
Response.Redirect("~/Teacher/TeacherDefault.aspx");
}
else if (RadioButtonListRole.SelectedValue == "管理员")
{
后面还有 15 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。