Demo/Login.aspx.cs
(完整代码) 1KBusing Demo.Helper;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Demo
{
public partial class About : Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
DataSet data = DBHelper.GetDataTable($"select * from UserInfo where UserName='{TextBox1.Text}' and Password='{TextBox2.Text}' ").DataSet;
if(data.Tables[0].Rows.Count > 0)
{
CookieHelper.WriteCookie("Aid", "LoginId", Convert.ToString(data.Tables[0].Rows[0][0]), 168);
string LoginId= CookieHelper.GetCookie("Aid", "LoginId");
Response.Write("<script>alert('登录成功!');window.location.href='Planlist.aspx';</script>");
}
else
{
Response.Write("<script>alert('账号或者密码错误!');</script>");
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。