UI/zhuce.aspx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Models;
using BLL;

namespace UI
{
    public partial class zhuce : System.Web.UI.Page
    {
        Manager m = new Manager();
        UserInfo u = new UserInfo();
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            if (this.name.Text != "" && this.pwd.Text != "" && this.repwd.Text != "" && this.email.Text != "" && this.phone.Text != "" && this.ma.Text != "")
            {
                u.Username = this.name.Text;
                u.UserPwd = this.pwd.Text;
                u.UserPwd = this.repwd.Text;
                u.Phone = this.phone.Text;
                u.Email = this.email.Text;
                bool flag = m.AddU(u);
                if (flag)
                {
                    Response.Write("<script>alert('添加成功');</script>");
                    Response.Write("<script>window.location='Login.aspx';</script>");
                }
                else
                {
                    Response.Write("<script>alert('添加失败');</script>");
                }
            }
            else
            {
                Response.Write("<script>alert('输入不能为空');</script>");
            }
        }    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。