-1
我收到例外不能在C#中找到表0 ExecuteDataSet
DataTable ProbRead = SQLData.ExecuteDataSet("SELECT description FROM chk_maintenance_probremark where subheaderid = " + lblrefno.Text.ToString() + " and Type='Problem'").Tables[0];
System.IndexOutOfRangeException:无法找到表0
https://stackoverflow.com/help/how-to-ask – g4s8
容易。你没有table [0]。也许你需要在''+ lblrefno.Text.ToString()+“'之前和之后的''',这取决于'subheaderid'的类型。这是不使用参数化查询的问题之一 – Pikoh
@Pikoh Got Yaa ..感谢您的帮助。 –