不能精细表(0) [英] Cannot Fine Table (0)

查看:85
本文介绍了不能精细表(0)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我已经制作了一个网络应用程序asp.net





有时我打开服务器上托管的应用程序

和我尝试登录我收到错误消息

找不到表0.





再次当我刷新登录页面并再次尝试登录时我没有收到该错误







同样的错误即将发生另一个错误你可以告诉我可能是什么问题



当我在本地主机上运行应用程序时它是运行正常

Hi i have made an web application asp.net


Sometime when i open the application which is hosted on the server
and i try to login i get the error message
Cannot find table 0.


Again when i refresh the login page and again try to log in i don't receive that error



same error is coming in the another error can u tell me what might be the problem

When i run the application on the local host it is running fine

推荐答案

我尝试登录我收到错误消息

找不到表0。




您没有在数据集中获取任何数据。

检查表格中的记录。如果记录存在,则确保登录用户存在记录。
and i try to login i get the error message
Cannot find table 0.


You're not getting any data in the dataset.
Check the table for records. If records exists then make sure records exists for login user.


Hi Rocky
          Cannot find table 0.is error occurs becouse ur dataset or datatables does'nt have any value at that time.
         I think ur database has some problem ...i think u get value from database in to dataset and then you provide the value to some variable like

 ds is datasetname

 cmd=da.fill(ds);
int a=ds.tables[0].rows[0]["ID"].tostring();

use 

if(ds.tables[0].rows.count !=0)
{
int a=ds.tables[0].rows[0]["ID"].tostring();
}
else
{
//print message
}
you see here in your dataset or datatable no rows found ...check it


it helps you...select as answer..


这篇关于不能精细表(0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆