刷新按钮点击失败原因:Unknown column '__Page' in 'where clause'
从源码上看没有__page ,怎么去修改???
源码附上:
UI (cs文件)
protected void ref_Click(object sender, EventArgs e)
{
DataTable table2 = BLL.ChangeOverMgr.SearchMaterials1(ID);
this.Materials.DataSource = table2;
this.Materials.DataBind();
ViewState["table"] = table2;
}
DAL(数据处理文件)
public DataTable SearchMaterials1(string ID)
{
string cmdText = @"select a.pn,a.station,a.materialsid,c.status1 from materials a
left join changeoverhis b on a.pn=b.pn
left join exa_materials c on a.materialsid=c.materialsid and b.id = c.hisid where 1=1";
cmdText = cmdText + " and b.id =" + ID + "";
cmdText = cmdText + " order by status1 desc,station;";
return MysqlHelper.ExecuteDataTable(cmdText);
}