Web/IndexPage/PriceShoping.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.Text;
public partial class IndexPage_PriceShoping : System.Web.UI.Page
{
PublicClass pc = new PublicClass();
Bll.ProductBll bp = new Bll.ProductBll();
Bll.ProdutClassBLL classPro = new Bll.ProdutClassBLL();
Model.tab_products modelPro = new Model.tab_products();
public string st;
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
pc.GetProductClass(this.DropDownList1);
}
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
st = this.DropDownList1.SelectedItem.Text;
DataTable dtt;
BindPro(this.DropDownList1.SelectedValue);
if (strsql.Length==0)
{
dtt = classPro.SelectProClass("select * from tab_products where productClassID=" + this.DropDownList1.SelectedValue);
}
else
{
strsql = strsql.Remove(strsql.Length - 1, 1);
string[] sql = strsql.ToString().Split('|');
StringBuilder sele = new StringBuilder();
sele.Append("select * from tab_products where ");
for (int i = 0; i < sql.Length; i++)
{
sele.AppendFormat(" productClassID={0} or", sql[i]);
}
sele = sele.Remove(sele.Length - 2, 2);
dtt = classPro.SelectProClass(sele.ToString());
}
this.DataList1.DataSource = dtt;
this.DataList1.DataBind();
}
StringBuilder strsql = new StringBuilder();
private void BindPro(string p)
{
后面还有 21 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
