⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addcusinfro.aspx.cs

📁 掌握计算机管理信息系统设计的一般方法
💻 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;

public partial class Addcusinfro : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        if (tcode.Text.Trim().Equals(""))
        {
            Response.Write("<script>alert('" + "请重新填写!" + "');</script>");
        }
        else
        {
            String cmdtext = "insert into trace values("
                + "'" + tcode.Text.Trim() + "',"
                + "'" + rcode.Text.Trim() + "',"
                + "'" + ccode.Text.Trim() + "',"
                + "'" + tdata.Text.Trim() + "',"
                + "'" + tcontent.Text.Trim() + "',"
                + "'" + tnode.Text.Trim() + "')";

            int nResult = -1;
            edit cla = new edit();
            nResult = cla.execute(cmdtext);
            if (nResult > 0)
            {
                Response.Write("<script>alert('" + "添加新的客户!" + "');</script>");
                tcode.Text = "";
                rcode.Text = "";
                ccode.Text = "";
                tdata.Text = "";
                tcontent.Text = "";
                tnode.Text = "";
                Response.Redirect("cstraceinfr.aspx");

            }
            else
            {
                Response.Write("<script>alert('" + "有错误,请调试程序!" + "');</script>");
            }
        }
    }
    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -