login.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
//http://www.51aspx.com 下载 欢迎到源码下载页面讨论 http://www.51aspx.com/Code/todayMessage
public partial class login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btregister_Click(object sender, EventArgs e)
{
Response.Redirect("register.aspx");
}
protected void btlogin_Click(object sender, EventArgs e)
{
if (tname.Text == string.Empty && tpass.Text == string.Empty)
{
Response.Write("<script>alert('用户名与密码都不能为空!!')</script>");
}
else
{
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString);
conn.Open();
string cmdtname = "select name from [User] where name='"+tname.Text+"'";
SqlCommand cmd = new SqlCommand(cmdtname,conn);
SqlDataReader drname = cmd.ExecuteReader();
if (drname.Read())//读取用户名
{
conn.Close();
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString);
con.Open();
string cmdtpass = "select pass from [User] where pass='"+tpass.Text+"'";
SqlCommand cmdpass = new SqlCommand(cmdtpass, con);
SqlDataReader drpass = cmdpass.ExecuteReader();
if (drpass.Read())//读取密码
{
con.Close();
mima();
}
else
{
if (tpass.Text == string.Empty)//判断密码是否为空
{
Response.Write("<script>alert('密码不能为空!!')</script>");
后面还有 80 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。