标题:关于datagrid 的问题
取消只看楼主
labcp
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2005-1-20
 问题点数:0 回复次数:0 
关于datagrid 的问题

求各为高手帮忙。谢谢!
我在datagird中加了一列按钮列。

If e.CommandName = "select" Then
Dim temval1 As String
temval1 = e.Item.Cells(1).Text
Response.Write(temval1)
End If

我点击按钮时没有任何反映。
如果改成
If e.CommandName = "select" Then
else
Dim temval1 As String
temval1 = e.Item.Cells(1).Text
Response.Write(temval1)
End If

在第一页时,没有任何问题,可是一换页,就抱错:::::]


指定的参数已超出有效值的范围。
参数名: index
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ArgumentOutOfRangeException: 指定的参数已超出有效值的范围。
参数名: index

源错误:


行 25:
行 26: Dim temval1 As String
行 27: temval1 = e.Item.Cells(1).Text
行 28: Response.Write(temval1)
行 29: End If

求各为高手帮忙。谢谢!

搜索更多相关主题的帖子: datagrid 
2007-06-04 16:30



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-144847-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 3.707204 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved