没暂住证 如何上牌:datagrid中:System.ArgumentOutOfRangeException: 指定的参数已超出有效值的范围。参数名: index

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/06 07:54:55
我的数据库中只有两个字段一个为topid 另一个为topmenu.
源错误:

行 125: Dim tb As TextBox
行 126: ' Gets the value the TextBox control in the third column
行 127: tb = CType(e.Item.Cells(1).Controls(0), TextBox)
行 128: categoryName = tb.Text
行 129: ' Gets the value the TextBox control in the fourth column

源文件: E:\wwwroot\Interpret\WebForm1.aspx.vb 行: 127

说的不是很明白没有办法给你看懂,你可以单步调试看看dataset里面的值是不是你想要的