📄 addcusinfro.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;
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 + -