我在DataGrid1.DeleteCommand 事件中.
sqllj = CType(e.Item.Cells(3).Controls(1), Label).Text
如上语句得到第三列中的 LABEL值是正确的,但是 第三列中有两个LABEL ,我用如下语句
sqllj = CType(e.Item.Cells(3).Controls(2), Label).Text
为什么说是指定的转换无效 ??
sqllj = CType(e.Item.Cells(3).Controls(1), Label).Text
如上语句得到第三列中的 LABEL值是正确的,但是 第三列中有两个LABEL ,我用如下语句
sqllj = CType(e.Item.Cells(3).Controls(2), Label).Text
为什么说是指定的转换无效 ??
解决方案 »
- 在数据控件中判定数据用什么方式读取速度比较好
- iis 安装问题====================在线等
- Repeater 数据上移 下移
- 哪位高手能看出我这段代码的问题出在哪?急!!!
- 大家帮忙看看,为什么我这段脚本能在.htm中运行,但在.aspx中却不能(在线急等!)
- 使用ExecuteReader查询数据的问题!
- 比如DataGrid中网格中自带的 编辑、更新、保存、选择,按钮及其相关事件,在Repeater中有吗?
- 关于表格排版问题
- 收集常用正则表达式
- 急求助:如何强制浏览器使用IE内核或调用IE打开一个页面
- 各位大虾,请问在Reporting Service中如何返回上一层报表
- btnsearch 为什么?
sqllj = CType(e.Item.Cells(3).FindControl("ControlClientID"), Label).Text
sqllj =(Label)(e.Item.Cells(3).Controls(1)).Text
Label lb=(Label)e.Item.Cell[3].Control[1];
string sqllj=lb.Text;