select * from CX_News where CXdate< shixiaoDate在数据库新建查询时没问题的
可是在后台里 string where = " chakancishu > CXdate and Is_show=1 ";
string fieldList = "CXID,CXContent,CXkeywords,CXtitle,CXdate,Is_show,order_by,img,faburen,shixiaoDate,chakancishu";
string orderField = "order_by";
bool orderBy = true; DataRecordTable table = new CX_NewsBussiness().GetList(fieldList, orderField, orderBy, 1, 20, where.ToString());
gwCuXiao.DataSource = table.Table;
gwCuXiao.DataBind();
这样写就有问题了 报错什么情况?string where 是条件
可是在后台里 string where = " chakancishu > CXdate and Is_show=1 ";
string fieldList = "CXID,CXContent,CXkeywords,CXtitle,CXdate,Is_show,order_by,img,faburen,shixiaoDate,chakancishu";
string orderField = "order_by";
bool orderBy = true; DataRecordTable table = new CX_NewsBussiness().GetList(fieldList, orderField, orderBy, 1, 20, where.ToString());
gwCuXiao.DataSource = table.Table;
gwCuXiao.DataBind();
这样写就有问题了 报错什么情况?string where 是条件
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货