📄 addstudent_allinfo.aspx.cs
字号:
using 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 XTeamBBL;
public partial class jiaowu_sys_student_allinfo_set_addstudent_allinfo : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Addallstud_Click(object sender, EventArgs e)
{
if (Page.IsValid)
{
int student_ID = Convert.ToInt32(DropDownList2.SelectedValue.ToString());
string student_type = TBxstudent_type.Text;
string student_content = TBxstudent_content.Text;
string student_year = Drop_year.SelectedItem.Text;
string student_term = Drop_term.SelectedItem.Text;
student_all sa = new student_all(student_ID,student_type,student_content, student_year, student_term);
Boolean flag = student_all.add_student_allinfo(sa);
if (flag) Response.Write("<script>alert('添加成功');</script>");
else Response.Write("<script>alert('添加失败');</script>");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -