SenBiTeSolution.UI/ManageWeb/Login.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;
using SenBiTeSolution.Common;
namespace SenBiTeSolution.UI.ManageWeb
{
public partial class Login : System.Web.UI.Page
{
bool isEmpty = false;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string name = "";
string pwd = "";
if (!string.IsNullOrEmpty (Request.QueryString["name"]))
{
name = Request.QueryString["name"];
}
else
{
isEmpty = true;
}
if (!string.IsNullOrEmpty(Request.QueryString["pwd"]))
{
pwd = Request.QueryString["pwd"];
}
else
{
isEmpty = true;
}
if (!isEmpty)
{
DAL.tbl_User user = new DAL.tbl_User();
if (user.UserNameExists(name))
{
if (user.CheckLogin(name, pwd))
{
Session["user_Name"] = name;
Response.Redirect("Frameset/MainFrame.htm");
}
else
{
MessageBox.Show(this, "密码错误或登录失败!");
}
}
else
{
MessageBox.Show(this, "用户名不存在!");
}
}
后面还有 6 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。