首页 新闻 赞助 找找看

无法找到表 0。哪位大哥解答一下

0
悬赏园豆:20 [已解决问题] 解决于 2022-03-17 13:37

[IndexOutOfRangeException: 无法找到表 0。]
System.Data.DataTableCollection.get_Item(Int32 index) +92
SportswearDAL.O_GoodsType.Search(Int32 PageSize, String strWhere, String strColNames, Int32 PageCurrent, String strOrder) in F:\asp.net(三层架构)运动商城\asp.net(三层架构)运动商城\Sportswear\SportswearDAL\O_GoodsType.cs:182
SportswearDAL.O_GoodsType.Search(String strWhere, String strColNames, Int32 PageCurrent, String strOrder) in F:\asp.net(三层架构)运动商城\asp.net(三层架构)运动商城\Sportswear\SportswearDAL\O_GoodsType.cs:170
index.myBind() in f:\asp.net(三层架构)运动商城\asp.net(三层架构)运动商城\Sportswear\SportswearWeb\index.aspx.cs:31
index.Page_Load(Object sender, EventArgs e) in f:\asp.net(三层架构)运动商城\asp.net(三层架构)运动商城\Sportswear\SportswearWeb\index.aspx.cs:24
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

静默似雪的主页 静默似雪 | 初学一级 | 园豆:184
提问于:2022-03-16 10:39
< >
分享
最佳答案
0

就是个下标越界异常,要看你具体的代码。看看连接参数那些是否有问题。

收获园豆:10
白墨Mo | 菜鸟二级 |园豆:229 | 2022-03-16 10:50
其他回答(2)
0

可以设置断点调试一下,应该是数据没有安照预想的方式查出来,预想也许能查出1个,但是实际上查出0个

收获园豆:5
会长 | 园豆:12401 (专家六级) | 2022-03-16 11:40
0

就去这个方法里找,断点逐步调试:
SportswearDAL.O_GoodsType.Search(Int32 PageSize, String strWhere, String strColNames, Int32 PageCurrent, String strOrder) in F:\asp.net(三层架构)运动商城\asp.net(三层架构)运动商城\Sportswear\SportswearDAL\O_GoodsType.cs:182

收获园豆:5
三人乐乐 | 园豆:4819 (老鸟四级) | 2022-03-16 13:50
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册