zhuce.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.SqlClient;
public partial class zhuce : System.Web.UI.Page
{
Alert js = new Alert();
SqlHelper data = new SqlHelper();
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
string yonghuhao = this.yonghuhao.Text;
string mima = this.mima1.Text;
string xingming = this.xingming.Text;
string dianhua = this.dianhua.Text;
string qq = this.qq.Text;
string weixin = this.weixin.Text;
SqlDataReader dr = data.GetDataReader("select * from yonghu where yonghuhao='" + yonghuhao + "'");
if (dr.Read())
{
js.Alertjs("用户账号已经存在,不能重复注册");
return;
}
string strsql = "Insert into yonghu(yonghuhao,mima,xingming,dianhua,qq,weixin)values(";
strsql += " '" + yonghuhao + "','" + mima + "','" + xingming + "','" + dianhua + "','" + qq + "','" + weixin + "')";
data.RunSql(strsql);
Alert.AlertAndRedirect("注册成功", "Default.aspx");
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。