【发布时间】:2017-12-11 18:00:01
【问题描述】:
我必须通过快速手表找到一个价值,这就是我从中得到的:
((System.Web.UI.WebControls.TextBox)(new System.Linq.SystemCore_EnumerableDebugView(GvAllCustomers.SelectedRow.Cells[1].Controls).Items[0])).Text
GvAllCustomers 是我的网格视图
问题是,当我将它添加到我的代码中时,它会显示错误。
string sC_Name = ((System.Web.UI.WebControls.TextBox)(new System.Linq.SystemCore_EnumerableDebugView(GvAllCustomers.SelectedRow.Cells[1].Controls).Items[0])).Text;
错误 CS0234:命名空间“System.Linq”中不存在类型或命名空间名称“SystemCore_EnumerableDebugView”(您是否缺少程序集引用?)
我知道SystemCore_EnumerableDebugView 不在System.Linq 中。但是我应该用什么来代替它呢?
【问题讨论】:
-
是的,我搜索了整个互联网,但没有找到任何有用的...