ASP.Net对象数据源-数据绑定 [英] ASP.Net Object Data Source - Data Binding

查看:102
本文介绍了ASP.Net对象数据源-数据绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ASP.Net对象数据源在页面生命周期中的什么时候绑定来自指定数据源的数据?

At what point does a ASP.Net Object Data Source bind data, from the specified data source, in the page life cycle?

推荐答案

来自页面生命周期概述,指的是数据绑定事件:

From the Page Life Cycle Overview, referring to the databinding event:

数据绑定控件在包含控件(或Page对象)的PreRender事件之前引发此事件,并标志着将控件绑定到数据的开始.

This event is raised by data-bound controls before the PreRender event of the containing control (or of the Page object) and marks the beginning of binding the control to the data.

关于DataBound事件:

And regarding the DataBound event:

此事件标志着数据绑定控件中数据绑定操作的结束.在GridView控件中,所有行和任何子控件的数据绑定均已完成.使用此事件来格式化数据绑定的内容或在依赖于当前控件内容的值的其他控件中启动数据绑定.

This event marks the end of data-binding operations in a data-bound control. In a GridView control, data binding is complete for all rows and any child controls. Use this event to format data bound content or to initiate data binding in other controls that depend on values from the current control's content.

这篇关于ASP.Net对象数据源-数据绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆