Admin1/uTeacherAdd.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
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 System.Data.SqlClient;
public partial class user_uInfofb : System.Web.UI.Page
{
SqlOperate sqloperate = new SqlOperate();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["MName"] == null)
{
Class1.AlertShow("请先登录系统!", "../Login.aspx");
return;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
try
{
string sqlstr = "insert into tb_Customer(a1,a2,a3,a4,a5,a6,a7,a8,CustCode)values('" + TextBox1.Text + "','" + DropDownList2.SelectedValue + "','" + DropDownList1.SelectedValue + "','" + DropDownList5.SelectedValue + "','" + DropDownList3.SelectedValue + "','" + DropDownList4.SelectedValue + "','" + TextBox7.Text + "','" + TextBox8.Text + "','" + TextBox2.Text + "')";
sqloperate.DataCom(sqlstr);
Response.Write("<script language=javascript>alert('客户基本信息添加成功!');document.location='uTeacherAdd.aspx'</script>");
}
catch
{
Response.Write("<script>alert('对不起,你的信息添加失败!');history.go(-1);</script>");
}
}
protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
{
}
protected void TextBox3_TextChanged(object sender, EventArgs e)
{
try
{
int age = Convert.ToInt32(TextBox3.Text);
if (age <= 30)
{
DropDownList2.SelectedIndex = 0;
后面还有 16 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。