Home > Database > Mysql Tutorial > body text

sqlserver未找到列

WBOY
Release: 2016-06-07 15:33:33
Original
1850 people have browsed it

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]。

请问错在哪里了。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template