UI/ZhuCe.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BasketBallShop.BLL;
using BasketBallShop.Model;
namespace BasketBallShop.UI
{
public partial class ZhuCe : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnIns_Click(object sender, EventArgs e)
{
userBll ubll = new userBll();
if (ubll.ExistsUser(txtUserName.Text))
{
txtUserName.Text = "";
Response.Write("<script>alert('这个用户已经存在!')</script>");
return;
}
Users u = new Users();
u.UserName = txtUserName.Text;
u.Password = txtPwd.Text;
u.TrueName = txtTrueName.Text;
u.City = txtCity.Text;
u.Address = txtAddress.Text;
u.Cardtype = txtCardType.Text;
u.Cardno = txtCardNO.Text;
u.Email = txtEmail.Text;
u.Postcode = txtPostCode.Text;
u.Tel = txtTel.Text;
u.RoleID = 1;
if (ubll.CreateUser(u))
{
Response.Write("<script>alert('添加成功!')</script>");
Response.Redirect("Login01.aspx");
}
else
{
Response.Write("<script>alert('添加失败!')</script>");
}
}
protected void btnExistsUser_Click(object sender, EventArgs e)
{
userBll ubll = new userBll();
if (ubll.ExistsUser(txtUserName.Text))
{
Response.Write("<script>alert('这个用户已经存在!')</script>");
}
else
{
Response.Write("<script>alert('这个用户名可以使用!')</script>");
后面还有 14 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
