外文原文:
The Data Binding Technology
In my project,I need to show the data from the DataBase,so I need to use the data binding technology which pany the following ,let's discuss it together.
If you are familiar with classic ASP, the declarative data binding syntax introduced in will be familiar to you even though the functionality is vastly different. Data binding expressions are the code you see between <%# and %> characters in an ASPX file. The expressions allow you to easily bind controls to data sources, as well as properties, expressions, and results from method calls exposed by the page. While this feature is easy to use, it often causes some confusion about what is allowed and whether it should be employed.
Data binding basics
Data binding expressions link page properties, server control properties, and data sources when the page's DataBind method is called. You can place data binding expressions on the value side of an attribute/value pair in the opening tag of a server control or anywhere in the page. All data binding expressions, regardless of where you place them, must be contained between <%# and %> characters.
When used with data controls (like Repeater, DataGrid, and so forth), the expression parameter is usually a column name from the data source. However, as long as it returns a value, any valid expression may be used. Likewise, the same syntax
外文翻译--数据捆绑技术 来自淘豆网m.daumloan.com转载请标明出处.