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

问题描述

是否有数据绑定的参考?我看到一些不同的数据绑定方式,但我从未找到参考。有没有?

Is there a reference for data binding? I've seen a bunch of different ways to data bind things, but I've never found a reference. Is there one?

我知道有Bind和Eval,但是Container.DataItem什么时候发挥作用?是否有其他隐藏的对象和方法可用?或者是Container.DataItem这里使用的对象?

I know there are Bind and Eval, but when does Container.DataItem come into play? Are there other "hidden" objects and methods available? Or is Container.DataItem the object that is being used here?

推荐答案

从下面的第一个链接(稍作改写):Container.DataItem是一个运行时别名绑定列表中该特定项目的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."

绝对其他类成员,再加上,其中包含 Eval 并提供方法查询绑定的Xml数据。

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

这些都是你所得到的:


  • (简短而甜蜜)



  • What's the deal with Databinder.Eval and Container.DataItem? (Short and sweet)
  • ASP.NET data binding overview
  • Data-Binding Expressions Overview

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

10-29 18:12