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 System.Data;
using System.Data.SqlClient;
public partial class Login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
string name = this.truename.Text.ToString();
string pass = this.password.Text;
string strsql = "";
DBLink db = new DBLink();
DataSet ds = new DataSet();
if (this.RadioButton2.Checked == true)
{
Session["type"] = "学工处";
strsql = "select * from jiaoshi where bianhao='" + name + "' and mima='" + pass + "' and Flag='学工处'";
}
else if (this.RadioButton1.Checked == true)
{
Session["type"] = "系部";
strsql = "select * from jiaoshi where bianhao='" + name + "' and mima='" + pass + "' and Flag='系部'";
}
else if (this.RadioButton3.Checked == true)
{
Session["type"] = "用人部门";
strsql = "select * from jiaoshi where bianhao='" + name + "' and mima='" + pass + "' and Flag='用人部门'";
}
ds = db.hsggetdata(strsql);
if (ds.Tables[0].Rows.Count>0)
{
Session["ID"] = ds.Tables[0].Rows[0]["ID"].ToString();
Session["UserName"] = name;
Session["pass"] = pass;
if (this.RadioButton2.Checked == true)
{
Response.Redirect("Manage/main.html");
}
else if (this.RadioButton1.Checked == true)
{
Session["xibu"] = ds.Tables[0].Rows[0]["xibu"].ToString();
Response.Redirect("xibu/main.html");
}
else if (this.RadioButton3.Checked == true)
{
Response.Redirect("yongrenbumen/main.html");
}
}
else
{
Response.Write("<script>javascript:alert('帐号或密码错误');</script>");
后面还有 3 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。