tycrm/KHFW/Kongzhitai/khlist.aspx.cs
(完整代码) 1KBusing System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using qpsmartweb.Public;
namespace tycrm.KHFW.Kongzhitai
{
public partial class khlist : System.Web.UI.Page
{
Db List = new Db();
protected void Page_Load(object sender, EventArgs e)
{
if (this.Session["username"] == null)
{
this.Response.Write("<script language=javascript>alert('登陆超时!');window.parent.location = '/main_d.aspx'</script>");
return;
}
if (!Page.IsPostBack)
{
DataBindToGridview();
}
}
public void DataBindToGridview()
{
if (Request.QueryString["kh"].ToString().Trim() != "")
{
string SQL_GetList_xs = "select id,Name from [qp_crm_Customer] where IfDel=0 and Name like '%" + List.GetFormatStr(Server.UrlDecode(Request.QueryString["kh"].ToString().Trim())) + "%'";
GridView1.DataSource = List.GetGrid_Pages_not(SQL_GetList_xs);
GridView1.DataBind();
}
else
{
string SQL_GetList_xs = "select id,Name from [qp_crm_Customer] where IfDel=0 and 1!=1";
GridView1.DataSource = List.GetGrid_Pages_not(SQL_GetList_xs);
GridView1.DataBind();
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
