This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 请问在ASP.NET的DataGrid里,如何用DataGridCommandEventArgs的Item属性来取e.Item的dataitem里的值?就好象DataGridItemEventArgs的Item属性用法那样。先谢了!
-hillxie(Playing Asp.net);
2002-7-15
(#638791@0)
-
how about e.item.FindControl?void Grid_Update(Object Sender, DataGridCommandEventArgs e)
{
TextBox tb;
tb = (TextBox) e.Item.FindControl("Column5Control");
}
-xmlhttprequest(xmlhttp);
2002-7-15
{143}
(#639355@0)
-
谢谢,但是DataGrid 的DataItem中的有些值只存在于DataGrid的DataSource的DataTable里,并没有以任何WebControl的方式在DataGrid中体现。用DataGridItemEventArgs可以取DataItem中的这类值,但不知道为什么用DataGridCommandEventArgs取不出来?
-hillxie(Playing Asp.net);
2002-7-16
{99}
(#639668@0)
-
知道了 e.Item.ItemIndex 不就可以知道别的东东了么?
-xmlhttprequest(xmlhttp);
2002-7-16
(#640657@0)
-
(DataRowView)e.Item.DataItem返回的是空,怎么才能取得DataItem里的值呢?
-hillxie(Playing Asp.net);
2002-7-16
(#641000@0)
-
at least u can use DataGrid.DataKeys[e.Item.ItemIndex].ToString() if u set key field for ur datagrid ctl...
-xmlhttprequest(xmlhttp);
2002-7-17
(#641210@0)
-
Yes. the Key Field is an exception.
-hillxie(Playing Asp.net);
2002-7-25
(#656753@0)
-
不好意思,不能发新贴,借用一下. .Net问题,请指教!Calling legacy COM component from asp.net, works on one machine, got "QueryInterface for interface .... failed" error when copy the folder to another machine. The COM component is registered on both machines.
-red7male(洪七公);
2002-7-29
{211}
(#662823@0)
-
有可能是安全问题。如果在一台机器上装了VS.net,为了调试方便,会扩大程序运行权限。如果直接移到另一台只装.NET framework的机器上,ASP运行用户aspnet就会没有权限访问组件。
-miketany(MIKE老狼);
2002-7-31
(#666989@0)
-
up together
-hillxie(Playing Asp.net);
2002-7-31
(#666092@0)