Web/Admin/CustomersAdmin/CustomerInfo.aspx.cs
(完整代码) 1KBusing 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.Text;
public partial class Admin_CustomersAdmin_CustomerInfo : System.Web.UI.Page
{
Bll.CustomerBll cb = new Bll.CustomerBll();
Model.tab_customers modelCb = new Model.tab_customers();
PublicClass pc = new PublicClass();
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button2_Click(object sender, EventArgs e)
{
StringBuilder strsql = new StringBuilder();
strsql.Append("select * from tab_customers where");
strsql.AppendFormat(" customerName like '%{0}%' and ", this.TextBox1.Text);
strsql.AppendFormat(" customerEmail like '%{0}%' and", this.TextBox2.Text);
strsql.AppendFormat(" customerTel like '%{0}%' and", this.TextBox3.Text);
strsql.AppendFormat(" customerCode like '%{0}%'", this.TextBox4.Text);
//DataTable dt = cb.CustomerSelect(strsql.ToString());
this.SqlDataSource1.SelectCommand = strsql.ToString();
this.SqlDataSource1.DataBind();
}
protected void Button1_Click(object sender, EventArgs e)
{
pc.clearText(this.TextBox1);
pc.clearText(this.TextBox2);
pc.clearText(this.TextBox3);
pc.clearText(this.TextBox4);
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
