本文介绍了你怎么知道使用的Container.DataItem当数据在ASP.NET绑定?有没有参考?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有数据绑定的参考?我已经看到了一堆不同的方式将数据绑定的东西,但我从来没有发现一个参考。有一?

我知道有绑定和eval,但什么时候的Container.DataItem发挥作用?是否有其他隐藏的对象和方法可用?抑或是的Container.DataItem在这里被使用的对象?


解决方案

From the first link below (paraphrasing slightly): "Container.DataItem is a runtime alias for the DataItem for this specific item in a bound list."

Definitely the other DataBinder class members, plus TemplateControl, which houses Eval and provides methods to query bound Xml data.

These are as close as you'll get:

这篇关于你怎么知道使用的Container.DataItem当数据在ASP.NET绑定?有没有参考?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 18:12