Keywords:
Eval (single-item binding) data binding is generally used for data display. The reflection principle of the Eval data binding application to return data.
Bind (bidirectional binding) bidirectional data binding not only displays data, but also automatically writes interface data changes back to the bound data source.
Eval
One-way data binding: displays data in the data source on the interface. When we mention data presentation, we must consider the data format, such as the date format. Of course, this is what Eval cares about.
General Data Binding
<% # Eval ("attribute name") %>
Data Binding with Data Format
<% # Eval ("attribute name", "{0: Format String}") %>
Data Binding with formatted strings
<% # Eval ("attribute name", "Home. aspx? Id = {0} ") %>
Bind
General Data Binding
<% # Bind ("property name") %>
Format-based Data Binding
<% # Bind ("property name", "{0: Data Format}") %>