DataTable objDataTable = new DataTable(); DataColumn dc; dc = new DataColumn("CustomerCode"); objDataTable.Columns.Add(dc); ViewState["ERPSystemApplicationTargetlist"] = objDataTable; DataTableo = (DataTable)ViewState["ERPSystemApplication
DataTable objDataTable = new DataTable();
DataColumn dc;
dc = new DataColumn("CustomerCode");
objDataTable.Columns.Add(dc);
ViewState["ERPSystemApplicationTargetlist"] = objDataTable;
DataTable o = (DataTable)ViewState["ERPSystemApplicationTargetlist"];
string customerCode ="111";
o.Select("CustomerCode=" + customerCode)
报错:未找到列 [111]。
请问错在哪里了。
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did98302