asp.net中数据绑定的含义是什么? [英] What is meaning of data binding in asp.net?

查看:175
本文介绍了asp.net中数据绑定的含义是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

asp.net中数据绑定的含义非常简单?



我在网上搜索但不明白。

What is meaning of data binding in asp.net in very simple terms?

I searched on the net but did not understand.

推荐答案

数据绑定是我所解释的。

填充是在控件上输入/填充/显示数据。您可以使用列表或任何数据绑定技术填充数据或硬编码值。

例如:我使用列表中的数据来填充我的下拉列表。我希望你现在能得到它。
Data Binding is what I have explained.
Populating is to enter/fill/show data on the control. You can populate the data using lists or any data binding techniques or hardcoding the values.
Ex: I am using the data in the list to populate my dropdownlist. I hope you get it now.


简单来说,我会说数据绑定==数据+绑定。

其中,数据是你拥有的数据,它可以是列表或任何集合对象中的硬编码数据,也可以是数据库或任何其他数据源中的硬编码数据。而且,绑定是将数据反映到关联控件/对象的过程(取决于上下文)。简而言之,数据绑定是将数据,数据更改反映到映射控件中的过程。例如,您可以使用显示硬编码数据的下拉列表,也可以使您的下拉列表显示数据集或数据库对象中的数据。您对数据所做的任何更改都将反映在您的关联控件中。还有许多其他数据绑定控件,如网格视图,详细信息视图,转发器等。数据绑定使您的应用程序更加灵活。
In simple words, I would say data binding == data + binding.
Where, data is the data you have, it can be hard coded data in a list or any collection object or from a database or any other data source. And, binding is the process of reflecting your data to your associated control/object (depending on the context). So in short, data binding is the process of reflecting your data, data changes into your mapped control. For example, you can have a dropdownlist that displays your hard coded data, also, you can make your dropdownlist show data from a dataset or database object. Any change that you make to your data will be reflected in your associated control. There are many other data bound controls such as grid view, details view, repeater, etc.,. Data Binding makes your application more flexible.


这篇关于asp.net中数据绑定的含义是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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