XKsystem/LoginCV.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace XKsystem
{
public partial class LoginCV : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
string userID = this.TextBox1.Text;
string userPassword = this.TextBox2.Text;
string userName = this.TextBox3.Text;
if (userName.Equals("") || userPassword.Equals("") || userID.Equals(""))
{
Response.Write("<script>alert('信息不能为空!')</script>");
}
else
{
DataTable IDPSW = BLL.Class1.Tcxdl(userID,userPassword,userName);
if (IDPSW.Rows.Count > 0)
{
Session["name"] = TextBox3.Text;
Session["ID"] = TextBox1.Text;
Server.Transfer("conservator_Index.aspx");
}
else
{
Response.Write("<script>alert('登录失败!')</script>");
}
}
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Redirect("Index.aspx");
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
