Images/Pictures/新建 文本文档.txt
(完整代码) 741BSqlConnection con = new SqlConnection("server=(local);user id=sa;pwd=;Database=db_ComPany");
con.Open();
SqlCommand com = new SqlCommand("select count(*) from tb_Administrator where Name='" + txtname.Text + "' and PWD='" + txtpwd.Text + "'", con);
int count = Convert.ToInt32(com.ExecuteScalar());
if (count > 0)
{
Session["Name"] = txtname.Text;
Session["PWD"] = txtpwd.Text;
Page.Response.Redirect("BackAdmin/AdminRegimentation/AdminRegimentation.aspx");
}
else
{
Response.Write("<script lanuage=javascript>alert('用户名或密码有误!');location='javascript:history.go(-1)'</script>");
return;
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
