Admin/AddhuiyuanInfo.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 Admin_AddhuiyuanInfo : System.Web.UI.Page
{
Alert alert = new Alert();
SqlHelper data = new SqlHelper();
protected void Page_Load(object sender, EventArgs e)
{
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
SqlDataReader dr;
dr = data.GetDataReader("select * from huiyuan where tel='" + tel.Text + "' ");
if (dr.Read())
{
alert.Alertjs("手机号码已经存在,不能重复添加");
}
else
{
data.RunSql("insert into huiyuan(name,tel,xingbie,nianling,zhiye)values('" + this.name.Text + "','" + this.tel.Text + "','" + xingbie.Text + "','" + nianling.Text + "','" + zhiye.Text + "')");
Alert.AlertAndRedirect("添加成功!", "huiyuanInfoManger.aspx");
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。