DataSet hallds = new DataSet();是全局的。在前台调用后台hall()方法,即<%=hall() %>,后台的hall()方法中写查询记录并赋给hallds的代码。前台还有一个ImageButton(ImageButton1),在ImageButton1的Click事件中写读出hallds中的一条记录。页面初始成功,hallds.Tables[0].Rows.Count是2。但单击页面的ImageButton1出现无法找到表0错误。这是什么原因?
...全文
2737打赏收藏
asp.net无法找到表0问题
DataSet hallds = new DataSet();是全局的。在前台调用后台hall()方法,即,后台的hall()方法中写查询记录并赋给hallds的代码。前台还有一个ImageButton(ImageButton1),在ImageButton1的Click事件中写读出hallds中的一条记录。页面初始成功,hallds.Tables[0].Rows.Count是2。但单击页面的ImageButton1出现无法找到表0错误。这是什么原因?