0

Im jumping into a project using MS Dynamics and a portal plugin, and am in need with a little help.

On the html side I have a CrmEntityDataSource which collects 1 record. I need to be able to get certain fields from this CrmEntityDataSource record in the CodeBehind but I don't know how to do this.

Is there a way to cast it to a codeBehind datareader, or something similar so that I can throw the column fields to labels etc?

4

1 回答 1

1

尝试使用枚举器读取对象:

IEnumerator e = dataSource.GetEnumerator();
while (e.MoveNext())
{
    object dataobject = e.Current;
}

有关 CrmEntityDataSource 的更多信息,请参见此处。

于 2013-04-20T23:04:36.153 回答