XKsystem/Enroll.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlTypes;
using Moodels;
using BLL;
namespace XKsystem
{
public partial class Enroll : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("Index.aspx");
}
protected void Button1_Click1(object sender, EventArgs e)
{
if (this.TextBox1.Text.Equals("") || this.TextBox2.Text.Equals("") || this.TextBox3.Text.Equals("") || this.TextBox4.Text.Equals(""))
{
Response.Write("<script>alert('请输入所有数据')</script>");
}
else
{
if (TextBox3.Text== TextBox4.Text)
{
user u = new user();
u.XName = TextBox1.Text;
u.XID =int.Parse(TextBox2.Text);
u.Xpsw = int.Parse(TextBox3.Text);
bool br= BLL.Class1.tjxs(u);
if (br)
{
Response.Write("<SCRIPT>alert('注册成功')</SCRIPT>");
}
else
{
Response.Write("<SCRIPT>alert('注册失败!')</SCRIPT>");
}
}
else
{
Response.Write("<SCRIPT>alert('确认密码错误')</SCRIPT>");
}
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
