Admin/Conctrl/AddVIP.ascx.cs
(完整代码) 1KBusing System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using JD.BLL;
using JD.Model;
public partial class Conctrl_AddVIP : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
if (PeopleMananger.GetByLogin(TextBox1.Text)!=null)
{
PageBase.alert(Page, "该卡号已经存在");
return;
}
People p = new People();
p.Login = TextBox1.Text;
p.Pass = TextBox1.Text;
p.Age = Convert.ToInt32(TextBox4.Text);
p.Tel = TextBox5.Text;
p.Add = TextBox6.Text;
p.Mail = TextBox7.Text;
p.Name = TextBox8.Text;
p = PeopleMananger.Add(p);
if (p == null)
{
PageBase.alert(Page, "添加失败");
return;
}
PageBase.alert(Page, "添加成功");
return;
}
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
People p = PeopleMananger.GetByLogin(TextBox1.Text);
if (p == null)
Label1.Text = "可以使用";
else
Label1.Text = "该卡号已被占用";
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。