WEB/AddStu.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Model;
namespace WEB
{
public partial class AddStu : System.Web.UI.Page
{
StuBll stuBll = new StuBll();
TeacherBll teacherBll = new TeacherBll();
GradeBll gradeBll = new GradeBll();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
}
}
protected void addStu_Click(object sender, EventArgs e)
{
Model.StuInfo stu = new StuInfo();
stu.stuName = this.txtNmae.Text;
stu.stuPwd = this.txtPwd.Text;
bool result = stuBll.AddStuInfo(stu);
if (result == true)
{
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "close", "<script language='javascript' type='text/javascript'>alert('保存添加!');window.opener.location.href=window.opener.location.href;window.close();</script>");
}
else
{
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "close", "<script language='javascript' type='text/javascript'>alert('添加失败!');</script>");
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。